After reorg, filter the entries that would no longer be valid in the next block, and update the entries' cached LockPoints if needed. The mempool does not have any knowledge of consensus rules. It just applies the callable function and removes the ones for which it returns true.
Synopsis
Declared in <txmempool.h>
[[requires_capability(0x7f2e1b5a1d78, 0x7f2e1b5a1da8), requires_capability(0x7f2e2721ad88, 0x7f2e2721adb8), requires_capability(0x7f2e421cc498, 0x7f2e421cc4c8), requires_capability(0x7f2e2880b458, 0x7f2e2880b488), requires_capability(0x7f2e3212e7e8, 0x7f2e3212e818), requires_capability(0x7f2e347f6e78, 0x7f2e347f6ea8), requires_capability(0x7f2e2b05b2e8, 0x7f2e2b05b318), requires_capability(0x7f2e2bee2988, 0x7f2e2bee29b8)]]
void
removeForReorg(
CChain& chain,
std::function<bool(txiter)> filter_final_and_mature);
Parameters
Name |
Description |
chain [in] |
The chain to validate entries against after the reorg. |
filter_final_and_mature [in] |
Predicate that checks the relevant validation rules and updates an entry's LockPoints. |
Created with MrDocs