1 minor finding
Findings
[minor] · Disconnect-pool memory limiting triggers a fuzz-harness assertion
Source inspection shows that reachable tx_pool_standard inputs can exceed the 20 MB disconnect-pool cap, turning normal eviction into a harness assertion failure before the reorg checks; no reproducer was executed.
Location: src/test/fuzz/tx_pool.cpp:204 (head).
Details and suggested fix
AddRejectedToBlock() appends transactions after block assembly, so the assembler's weight cap does not bound the resulting vtx. With require_standard=false, -limitclustersize=250, and enough mempool capacity, four accepted independent version-2 fan-outs of 200, 600, 1,800 and 5,400 outputs grow outpoints_rbf to 8,100. Thirty later transactions can each spend a different unused mature coinbase and create 16,200 outputs. They exceed the cluster limit and enter rejected, yet all pass the append filter. Their output vectors alone account for at least 23,328,000 bytes, so AddTransactionsFromBlock() returns evictions and this Assert fails before MaybeUpdateMempoolForReorg() runs.
Handle returned evictions as DisconnectTip() does: call tx_pool.removeRecursive(*evicted_tx, MemPoolRemovalReason::REORG) for each result of AddTransactionsFromBlock(vtx), then process the remaining disconnect pool.