This follows the approach of adding statistical information to Bitcoin Core that would otherwise be inefficient to calculate outside of the codebase.
Adds an optional feerate histogram to getmempoolinfo
.
The concept and code is heavily inspired by the stats @jhoenicke runs (https://github.com/jhoenicke/mempool).
If someone has a good idea how to make the feerate-groups dynamic but also semi-constant for similar fee environments, please comment.
If this is feature we’d like to have in master (concept ACKs), I’d continue this with writing tests.
A simple plot of the data is here. RPC output sample is here.