Part of cluster mempool: #30289
This builds on #31363, adding more functionality to the txgraph module, specifically:
TxGraph::GetMainStagingDiagrams()
, a function to obtain feerate diagrams for both the main graph and the staged changes to it, including only the clusters that differ between the two.TxGraph::GetBlockBuilding()
, a function to obtain an object which can efficiently iterate the chunks of the (main) graph from high to low chunk feerate, allowing each to be skipped or included.TxGraph::GetEvictor()
, a function to obtain an object which can efficiently iterate the chunks of the (main) graph from low to high chunk feerate, allowing each to be destroyed or not.