Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Show First 20 Lines • Show All 550 Lines • ▼ Show 20 Lines | for (txiter it : txToRemove) { | ||||
CalculateDescendants(it, setAllRemoves); | CalculateDescendants(it, setAllRemoves); | ||||
} | } | ||||
RemoveStaged(setAllRemoves, false, reason); | RemoveStaged(setAllRemoves, false, reason); | ||||
} | } | ||||
void CTxMemPool::removeForReorg(const Config &config, | void CTxMemPool::removeForReorg(const Config &config, | ||||
const CCoinsViewCache *pcoins, | const CCoinsViewCache *pcoins, | ||||
unsigned int nMemPoolHeight, int flags) | unsigned int nMemPoolHeight, int flags) { | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main) { | |||||
// Remove transactions spending a coinbase which are now immature and | // Remove transactions spending a coinbase which are now immature and | ||||
// no-longer-final transactions. | // no-longer-final transactions. | ||||
LOCK(cs); | LOCK(cs); | ||||
setEntries txToRemove; | setEntries txToRemove; | ||||
for (indexed_transaction_set::const_iterator it = mapTx.begin(); | for (indexed_transaction_set::const_iterator it = mapTx.begin(); | ||||
it != mapTx.end(); it++) { | it != mapTx.end(); it++) { | ||||
const CTransaction &tx = it->GetTx(); | const CTransaction &tx = it->GetTx(); | ||||
LockPoints lp = it->GetLockPoints(); | LockPoints lp = it->GetLockPoints(); | ||||
▲ Show 20 Lines • Show All 830 Lines • Show Last 20 Lines |