Skip to content

Display tx nLockTime correctly when set to block ##2159

Merged
gavinandresen merged 1 commit intobitcoin:masterfrom
petertodd:display-nlocktime-correctly
Jan 14, 2013
Merged

Display tx nLockTime correctly when set to block ##2159
gavinandresen merged 1 commit intobitcoin:masterfrom
petertodd:display-nlocktime-correctly

Conversation

@petertodd
Copy link
Copy Markdown
Contributor

Previously when a transaction was set to lock at a specific block the calculation was reversed, returning a negative number. This broke the UI and caused it to display %n in place of the actual number.

In addition the previous calculation would display "Open for 0 blocks" when the block height was such that the next block created would finalize the transaction. Inserted the word "more" and changed the calculation so that the last message would be "Open for 1 more block" to better match user expectations.

If you don't feel invalidating the translations is worth it, let me know and I'll back that part of the change out.

Previously when a transaction was set to lock at a specific block the
calculation was reversed, returning a negative number. This broke the UI
and caused it to display %n in place of the actual number.

In addition the previous calculation would display "Open for 0 blocks"
when the block height was such that the next block created would
finalize the transaction. Inserted the word "more" and changed the
calculation so that the last message would be "Open for 1 more block" to
better match user expectations.
@BitcoinPullTester
Copy link
Copy Markdown

Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/10046e27dbc10270f59385231736da2a9a327a8f for binaries and test log.

@laanwj
Copy link
Copy Markdown
Member

laanwj commented Jan 9, 2013

Ack

@Diapolo
Copy link
Copy Markdown

Diapolo commented Jan 9, 2013

ACK

gavinandresen added a commit that referenced this pull request Jan 14, 2013
Display tx nLockTime correctly when set to block #
@gavinandresen gavinandresen merged commit e4f2b6b into bitcoin:master Jan 14, 2013
@petertodd petertodd deleted the display-nlocktime-correctly branch January 14, 2013 20:14
laudney pushed a commit to reddcoin-project/reddcoin-3.10 that referenced this pull request Mar 19, 2014
…ectly

Display tx nLockTime correctly when set to block #
owlhooter pushed a commit to owlhooter/mazacoin-new that referenced this pull request Oct 11, 2018
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants