[#CTxMemPool-UpdateTransactionsFromBlock] = xref:CTxMemPool.adoc[CTxMemPool]::UpdateTransactionsFromBlock :relfileprefix: ../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7ff37b420338, 0x7ff37b420368), requires_capability(0x7ff376fd7ce8, 0x7ff376fd7d18), requires_capability(0x7ff38def6f08, 0x7ff38def6f38), requires_capability(0x7ff3640f7f18, 0x7ff3640f7f48), requires_capability(0x7ff3920f8208, 0x7ff3920f8238), requires_capability(0x7ff37f5ca328, 0x7ff37f5ca358), requires_capability(0x7ff37d0115a8, 0x7ff37d0115d8), requires_capability(0x7ff374c14db8, 0x7ff374c14de8)]] void UpdateTransactionsFromBlock(std::vector<Txid> const& vHashesToUpdate); ---- == Parameters [cols="1,4"] |=== | 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. [.small]#Created with https://www.mrdocs.com[MrDocs]#