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:
Mark Friedenbach 2015-05-14 19:29:55 -07:00 committed by Matt Corallo
parent 553ff39655
commit 2be1de38aa
4 changed files with 7 additions and 12 deletions

View file

@ -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;