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(0x7fbc8f684448, 0x7fbc8f684478), requires_capability(0x7fbc95d461a8, 0x7fbc95d461d8), requires_capability(0x7fbca708be68, 0x7fbca708be98), requires_capability(0x7fbc86274708, 0x7fbc86274738), requires_capability(0x7fbca7898de8, 0x7fbca7898e18), requires_capability(0x7fbc84aba438, 0x7fbc84aba468), requires_capability(0x7fbc870f9938, 0x7fbc870f9968), requires_capability(0x7fbc921e11f8, 0x7fbc921e1228)]]
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