Review report

core: PR #33922

🟡 Minor

Include the retained transaction allocation in the memory estimate (src/node/block_template_manager.cpp:83, head)

Dereferencing tx_ref before calling RecursiveDynamicUsage selects the CTransaction overload. That overload counts the transaction’s vectors and nested allocations, but omits the retained CTransaction object and shared-pointer control block. Call RecursiveDynamicUsage(tx_ref) instead. The shared-pointer overload includes those allocations along with the recursive transaction usage, matching the existing CBlock accounting. Otherwise, getMemoryLoad() underreports the memory retained for each non-mempool transaction.