• Peter Todd's avatar
    Fix off-by-one errors in use of IsFinalTx() · c32ee02f
    Peter Todd authored
    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.
    c32ee02f
main.cpp 150 KB