-
Notifications
You must be signed in to change notification settings - Fork 809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mempool: turn on replace by fee by default #737
base: master
Are you sure you want to change the base?
Conversation
This matches Bitcoin Core's policy of allowing transactions to be replaced via replace by fee in the mempool by default. Turning off this policy results in many transactions being rejected from the mempool. `bitcoind` refers to this setting as `-mempoolreplacement`. See `bitcoind` v0.12.0 release notes: https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.12.0.md
Codecov Report
@@ Coverage Diff @@
## master #737 +/- ##
==========================================
- Coverage 55.46% 55.45% -0.02%
==========================================
Files 104 104
Lines 27724 27724
Branches 4749 4749
==========================================
- Hits 15377 15373 -4
- Misses 12347 12351 +4
Continue to review full report at Codecov.
|
utACK - I think electrum wallet also does RBF by default. And since all CSV transactions are RBF, we are rejecting a good amount of traffic. |
According to @BluSyn, defaulting to |
Also, as indication of lack of testing around it, the value was changed, and zero tests needed to be changed. This is also an option for the node, not the wallet, it's not clear how that is related. For the wallet, a "bump the fee" option for a transaction may be an improvement to clear a stuck transaction. |
It sounds like before enabling RBF on the node, we should prepare the wallet for RBF as well. I think it would be great to support RBF features similar to Core and Electrum:
|
It looks like Line 1360 in 01a7156
Hey @turbomaze, this could be useful for you for getting transactions unstuck |
This matches Bitcoin Core's policy of allowing transactions to be replaced via replace by fee in the mempool by default. Turning off this policy results in many transactions being rejected from the mempool.
bitcoind
refers to this setting as-mempoolreplacement
. Seebitcoind
v0.12.0 release notes:https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.12.0.md
See https://github.com/bitcoin/bitcoin/blob/master/src/validation.h#L125-L126
Thanks to @pinheadmz for finding the code snippet in
bitcoind