A simple refactor as preparation for moving consensus to code for transaction validation. The consensus version of IsFinalTx() cannot use chainActive.Height() or GetAdjustedTime()
This is part of #6051 but can be merged independently.
643@@ -644,6 +644,7 @@ bool IsStandardTx(const CTransaction& tx, string& reason)
644 return true;
645 }
646
647+bool CheckFinalTx(const CTransaction &tx, int nBlockHeight, int64_t nBlockTime);
CheckFinalTx()
(L661) above isFinalTx()
(above L648)? IIRC we don’t have function declarations in main.cpp.
tx.nLockTime == 0
check).
utACK
You do not like BOOST_FOREACH? ;-)
Yup, that’s my thoughts here too.
However give me a week or so and I’ll do up that median time patch design so we can fix this exactly once. On “vacation” right now. :)
On 2 June 2015 13:57:04 CEST, “Wladimir J. van der Laan” notifications@github.com wrote:
@jtimon Feel free to fix that nit anyway - but we just had to move ahead to get the bug fix in.
Reply to this email directly or view it on GitHub: #6063 (comment)