aboutsummaryrefslogtreecommitdiff
path: root/src/test/rpc_wallet_tests.cpp
diff options
context:
space:
mode:
authorPeter Todd <pete@petertodd.org>2014-01-26 21:50:15 -0500
committerPeter Todd <pete@petertodd.org>2014-01-26 21:50:15 -0500
commit665bdd3bc9ba4ac566edf5ba3fa8bbd93eb4780f (patch)
treee365b2e271d8df98f88982c6fe27608dd9eb7fe1 /src/test/rpc_wallet_tests.cpp
parentd0a94f2c2f127768acd9be4c0905d40f609ba6fc (diff)
downloadbitcoin-665bdd3bc9ba4ac566edf5ba3fa8bbd93eb4780f.tar.xz
Fix off-by-one errors in use of IsFinalTx()
Previously CreateNewBlock() didn't take into account the fact that IsFinalTx() without any arguments tests if the transaction is considered final in the *current* block, when both those functions really needed to know if the transaction would be final in the *next* block. Additionally the UI had a similar misunderstanding. Also adds some basic tests to check that CreateNewBlock() is in fact mining nLockTime-using transactions correctly. Thanks to Wladimir J. van der Laan for rebase.
Diffstat (limited to 'src/test/rpc_wallet_tests.cpp')
0 files changed, 0 insertions, 0 deletions