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(0x7f2e1b5a2968, 0x7f2e1b5a2998), requires_capability(0x7f2e2721b978, 0x7f2e2721b9a8), requires_capability(0x7f2e421cd088, 0x7f2e421cd0b8), requires_capability(0x7f2e2880c048, 0x7f2e2880c078), requires_capability(0x7f2e3212f3d8, 0x7f2e3212f408), requires_capability(0x7f2e347f7a68, 0x7f2e347f7a98), requires_capability(0x7f2e2b05bed8, 0x7f2e2b05bf08), requires_capability(0x7f2e2bee3578, 0x7f2e2bee35a8)]]
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