mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Get rid of CTxIn::IsFinal(), which is only used in one location and whose semantics will not survive revival of sequence numbers
This commit is contained in:
parent
553ff39655
commit
2be1de38aa
4 changed files with 7 additions and 12 deletions
|
|
@ -733,7 +733,7 @@ bool IsFinalTx(const CTransaction &tx, int nBlockHeight, int64_t nBlockTime)
|
|||
|
||||
bool fFinalized = true;
|
||||
BOOST_FOREACH(const CTxIn& txin, tx.vin)
|
||||
fFinalized = fFinalized && txin.IsFinal();
|
||||
fFinalized = fFinalized && !~txin.nSequence;
|
||||
|
||||
if (!fFinalized && (int64_t)tx.nLockTime >= ((int64_t)tx.nLockTime < LOCKTIME_THRESHOLD ? (int64_t)nBlockHeight : nBlockTime))
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue