This is very much a WIP, but feedback is welcome.
This adds support for using the mempool state when calculating the fee rate for transactions. It is currently only supported in estimatesmartfee RPC command, but intention is to make it available in sendtoaddress and friends eventually.
To do (at minimum):
- Optimize portion value (in fees.cpp), currently
(0.1+(conservative*0.05))*max(0.5, 1-0.1*confTarget)) - Remove debug cruft