-
Notifications
You must be signed in to change notification settings - Fork 37.8k
wallet: default -fallbackfee to same as -mintxfee on test chains #28316
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
Conversation
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. |
Test with:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested ACK #28316
The PR fixes the 'fee estimation failed' error on regtest
pre-fix
$ ./bitcoin-cli -regtest sendtoaddress $(./bitcoin-cli -regtest getnewaddress) 1.0
error code: -6
error message:
Fee estimation failed. Fallbackfee is disabled. Wait a few blocks or enable -fallbackfee.
after the fix:
$ ./bitcoin-cli -regtest sendtoaddress $(./bitcoin-cli -regtest getnewaddress) 1.0
375bf0933754164c5da7567a6fcdb6ae34140155031cba6f6edcd404960cc835
$ ./bitcoin-cli getrawtransaction 375bf0933754164c5da7567a6fcdb6ae34140155031cba6f6edcd404960cc835
02000000000101e386af630bb3d7a9d170f07cb472c28ffe82b72f797b91a4964803c8e6546d2c0000000000fdffffff027310102401000000160014fe3eccfd9050103fbed369df8c49e5e22f37472000e1f50500000000160014ff2df796bd9ca70e89edd21b8a73c7a53d28abf3024730440220791a2399dc6a4e552902738f9c2d7fbac7bcdc521780e50fe194a922b82b1fdf02205e1c2c26667149277440e4a80a5386d327b9b3e3e6fa87232353c71cd5579a520121026bb5c51c88ad288868560702573ce7e21f6a104e46d052c283e80f37fd9ad58765000000
Rephrased the OP more straightforwardly. Having to run OTOH, running Historically:
We already use |
You can also use unrelated: I guess we can drop |
Better to keep |
Doesn't seem to be much interest, closing |
On mainnet, the error message:
is helpful, because if you aren't able to set a fee based on an external source or the internal fee estimation code, then you're likely to either waste money when the default is too high, or have a tx that won't confirm if the default is too low. On regtest and friends it's not help, and the advice may well be wrong: particularly on regtest, mining additional empty blocks won't help at all.
But for test net's there is an easy default available that is quite reliable: just use the minimum tx fee.