dogecoin/src/policy
Patrick Lodder bde7442526
mempool: tune incremental fee to make more sense for Dogecoin
The value of DEFAULT_INCREMENTAL_RELAY_FEE has never been tuned for
Dogecoin since porting from Bitcoin Core 0.14. Even though the dual
meaning of this parameter is suboptimal, it can still be tuned.

This commit sets the value to 1/10th of DEFAULT_MIN_RELAY_TX_FEE
from validation.h, which causes:

1. Mempool limiting to be performed in steps of 0.0001 DOGE/kb
   instead of 0.00001 DOGE/kb
2. RBF to be accepted by the mempool if the new fee is at least
   0.0001 DOGE/kb higher than the previous fee known to the
   mempool
3. RBF to be cheaper than CPFP by a factor 10 (as the latter would
   require a fee of more than 0.001 DOGE/kb on a subsequent bumping
   transaction), to encourage mempool replacement over prioritizing
   through additional transactions that need to be mined.
4. Mempool limiting to be 10x faster to reset to zero than before,
   because for bitcoin, fee increments equaled their minimum fee,
   but for us this was 1/100th.

mempool_tests.cpp has been reworked a bit to reflect the reality
of having a lower increment than the minimum fee, as even though
this already was the case, this was not tested correctly due to the
static values in the unit test.
2021-09-25 21:51:36 +02:00
..
fees.cpp Fix edge case with stale fee estimates 2017-01-04 12:10:18 -05:00
fees.h Add extra logging to processBlock in fee estimation. 2017-01-04 12:10:18 -05:00
policy.cpp Use CAmount for amounts 2021-08-08 18:36:15 +01:00
policy.h mempool: tune incremental fee to make more sense for Dogecoin 2021-09-25 21:51:36 +02:00
rbf.cpp [copyright] copyright header style uniform 2016-11-06 10:12:50 -07:00
rbf.h [copyright] copyright header style uniform 2016-11-06 10:12:50 -07:00