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(0x7fb95f556498, 0x7fb95f5564c8), requires_capability(0x7fb968bc7ba8, 0x7fb968bc7bd8), requires_capability(0x7fb95fdd19e8, 0x7fb95fdd1a18), requires_capability(0x7fb978b76da8, 0x7fb978b76dd8), requires_capability(0x7fb96b8fc308, 0x7fb96b8fc338), requires_capability(0x7fb96e5c2dd8, 0x7fb96e5c2e08), requires_capability(0x7fb97a07ce08, 0x7fb97a07ce38), requires_capability(0x7fb96be44b58, 0x7fb96be44b88)]]
void
UpdateTransactionsFromBlock(std::vector<Txid> const& vHashesToUpdate);

Parameters

Name

Description

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.

Created with MrDocs