[#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)&period;

== Synopsis

Declared in `&lt;txmempool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f95135d2a38, 0x7f95135d2a68), requires&lowbar;capability(0x7f9501b11e18, 0x7f9501b11e48), requires&lowbar;capability(0x7f950ec78008, 0x7f950ec78038), requires&lowbar;capability(0x7f9525ea7d58, 0x7f9525ea7d88), requires&lowbar;capability(0x7f9515097498, 0x7f95150974c8), requires&lowbar;capability(0x7f950826b738, 0x7f950826b768), requires&lowbar;capability(0x7f94f856ee48, 0x7f94f856ee78), requires&lowbar;capability(0x7f9513c59038, 0x7f9513c59068)&rsqb;&rsqb;
void
UpdateTransactionsFromBlock(std::vector&lt;Txid&gt; 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&period;
|===

== Postconditions

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


[.small]#Created with https://www.mrdocs.com[MrDocs]#
