Changeset View
Changeset View
Standalone View
Standalone View
src/txmempool.cpp
Show First 20 Lines • Show All 463 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
void CTxMemPool::removeUnchecked(txiter it, MemPoolRemovalReason reason) { | void CTxMemPool::removeUnchecked(txiter it, MemPoolRemovalReason reason) { | ||||
if (reason != MemPoolRemovalReason::BLOCK) { | if (reason != MemPoolRemovalReason::BLOCK) { | ||||
// Notify clients that a transaction has been removed from the mempool | // Notify clients that a transaction has been removed from the mempool | ||||
// for any reason except being included in a block. Clients interested | // for any reason except being included in a block. Clients interested | ||||
// in transactions included in blocks can subscribe to the | // in transactions included in blocks can subscribe to the | ||||
// BlockConnected notification. | // BlockConnected notification. | ||||
GetMainSignals().TransactionRemovedFromMempool(it->GetSharedTx()); | GetMainSignals().TransactionRemovedFromMempool(it->GetSharedTx(), | ||||
reason); | |||||
} | } | ||||
for (const CTxIn &txin : it->GetTx().vin) { | for (const CTxIn &txin : it->GetTx().vin) { | ||||
mapNextTx.erase(txin.prevout); | mapNextTx.erase(txin.prevout); | ||||
} | } | ||||
/* add logging because unchecked */ | /* add logging because unchecked */ | ||||
RemoveUnbroadcastTx(it->GetTx().GetId(), true); | RemoveUnbroadcastTx(it->GetTx().GetId(), true); | ||||
▲ Show 20 Lines • Show All 978 Lines • Show Last 20 Lines |