diff options
author | Alex Morcos <morcos@chaincode.com> | 2015-12-07 15:44:16 -0500 |
---|---|---|
committer | Alex Morcos <morcos@chaincode.com> | 2016-02-10 15:35:33 -0500 |
commit | c6c2f0fd782ccf607027414012f45c8f48561a30 (patch) | |
tree | 851d2b78c132cf851fafb35b6d62b7bf8f562ac6 /src/txmempool.cpp | |
parent | dc0305d15aa02819cd4763e1efe3876d674faea7 (diff) |
Implement SequenceLocks functions
SequenceLocks functions are used to evaluate sequence lock times or heights per BIP 68.
The majority of this code is copied from maaku in #6312
Further credit: btcdrak, sipa, NicolasDorier
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r-- | src/txmempool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index fea5da8029..67001cf7df 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -504,7 +504,7 @@ void CTxMemPool::removeForReorg(const CCoinsViewCache *pcoins, unsigned int nMem list<CTransaction> transactionsToRemove; for (indexed_transaction_set::const_iterator it = mapTx.begin(); it != mapTx.end(); it++) { const CTransaction& tx = it->GetTx(); - if (!CheckFinalTx(tx, flags)) { + if (!CheckFinalTx(tx, flags) || !CheckSequenceLocks(tx, flags)) { transactionsToRemove.push_back(tx); } else if (it->GetSpendsCoinbase()) { BOOST_FOREACH(const CTxIn& txin, tx.vin) { |