HomePhabricator

Display tx nLockTime correctly when set to block #
10046e27dbc1Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Display tx nLockTime correctly when set to block #

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.

Details

Provenance
Peter Todd <pete@petertodd.org>Authored on Jan 9 2013, 08:14
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING429915bd0dfc: Merge pull request #2153 from Diapolo/overviewpage
Branches
Unknown
Tags
Unknown

Event Timeline

Peter Todd <pete@petertodd.org> committed rSTAGING10046e27dbc1: Display tx nLockTime correctly when set to block # (authored by Peter Todd <pete@petertodd.org>).Jan 9 2013, 09:18