MCPcopy Create free account
hub / github.com/ElementsProject/elements / RemoveUnbroadcastTx

Method RemoveUnbroadcastTx

src/txmempool.cpp:1142–1149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1140}
1141
1142void CTxMemPool::RemoveUnbroadcastTx(const uint256& txid, const bool unchecked) {
1143 LOCK(cs);
1144
1145 if (m_unbroadcast_txids.erase(txid))
1146 {
1147 LogPrint(BCLog::MEMPOOL, "Removed %i from set of unbroadcast txns%s\n", txid.GetHex(), (unchecked ? " before confirmation that txn was sent out" : ""));
1148 }
1149}
1150
1151void CTxMemPool::RemoveStaged(setEntries &stage, bool updateDescendants, MemPoolRemovalReason reason) {
1152 AssertLockHeld(cs);

Callers 2

ProcessGetDataMethod · 0.80

Calls 2

eraseMethod · 0.45
GetHexMethod · 0.45

Tested by

no test coverage detected