CTxMemPool::UpdateTransactionsFromBlock

UpdateTransactionsFromBlock is called when adding transactions from a disconnected block back to the mempool, new mempool entries may have children in the mempool (which is generally not the case when otherwise adding transactions).

Synopsis

Declared in <txmempool.h>

[[requires_capability(0x7fd7537b9d48, 0x7fd7537b9d78), requires_capability(0x7fd74eec66d8, 0x7fd74eec6708), requires_capability(0x7fd75e707d28, 0x7fd75e707d58), requires_capability(0x7fd7598944f8, 0x7fd759894528), requires_capability(0x7fd75ce064c8, 0x7fd75ce064f8), requires_capability(0x7fd759f6f958, 0x7fd759f6f988), requires_capability(0x7fd75b82fb98, 0x7fd75b82fbc8), requires_capability(0x7fd73e8addf8, 0x7fd73e8ade28)]]
void
UpdateTransactionsFromBlock(std::vector<Txid> const& vHashesToUpdate);

Parameters

NameDescription
vHashesToUpdate [in]The set of txids from the disconnected block that have been accepted back into the mempool.

Postconditions

  • updated descendant state for descendants of each transaction in vHashesToUpdate (excluding any child transactions present in vHashesToUpdate, which are already accounted for). Updated state includes add fee/size information for such descendants to the parent and updated ancestor state to include the parent.