Follow-up #27622 See –> Comment Currently, there is no persistence of mempoolminfee As mentioned in the comment
persist
mempoolminfee
across restarts to at least tell user a plausible value to stay in the mempool for a bit
The suggestions outlined in the comment are implemented in this pull request. The mempoolminfee
will now be persisted on shutdown and periodically in the event of an unclean shutdown.
Upon restart, the previous mempoolminfee
value will be remembered, and any transactions with fees below the persisted mempoolminfee will be rejected from entering the mempool.
If a user passes the -minrelaytxfee
, it will be utilized as the mempoolminfee
, just as it was prior to this pull request.
When reading the persisted mempoolminfee, we take the max of the persisted value and the default minimum fee of 1000 satoshis, ensuring that the remembered mempoolminfee
value will not be less than 1000 satoshis.