-
Notifications
You must be signed in to change notification settings - Fork 37.8k
wallet: Give slightly more understandable advice when needing -fallbackfee #18214
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. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
@@ -2800,7 +2800,7 @@ bool CWallet::CreateTransaction(interfaces::Chain::Lock& locked_chain, const std | |||
nFeeNeeded = GetMinimumFee(*this, nBytes, coin_control, &feeCalc); | |||
if (feeCalc.reason == FeeReason::FALLBACK && !m_allow_fallback_fee) { | |||
// eventually allow a fallback fee | |||
strFailReason = _("Fee estimation failed. Fallbackfee is disabled. Wait a few blocks or enable -fallbackfee.").translated; | |||
strFailReason = _("Fee estimation failed. Fallbackfee is disabled. Wait a few blocks or enable -fallbackfee=<BTC/kB>.").translated; |
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.
Tend to NACK
- The documentation (
-help
or-?
) is already pretty clear on this being an amount and not a flag - This is a translation string, so all translations are invalided, for little reason. Also, it complicates translations
- The underlying bug should be fixed. See util: Fail to parse empty string in ParseMoney #18225
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.
FWIW debug logs already do it:
src/qt/bitcoinstrings.cpp:137:QT_TRANSLATE_NOOP("bitcoin-core", "Invalid amount for -fallbackfee=<amount>: '%s'"),
src/wallet/wallet.cpp:3799: error = strprintf(_("Invalid amount for -fallbackfee=<amount>: '%s'").translated, gArgs.GetArg("-fallbackfee", ""));
8888461 util: Fail to parse empty string in ParseMoney (MarcoFalke) fab30b6 util: Remove unused ParseMoney that takes a c_str (MarcoFalke) Pull request description: Supplying a fee rate or an amount on the command line as an empty string, which currently parses as `0` seems fragile and confusing. See for example the confusion in #18214. Fixes #18214 ACKs for top commit: Empact: Code Review ACK 8888461 achow101: ACK 8888461 instagibbs: utACK 8888461 Tree-SHA512: ac2d6b7fa89fe5809c34d5f49831042032591c34fb3c76908d72fed51e8bced41bf2b41dc1b3be34ee691a40463355649857a7a8f378709d38ae89503feb11c2
8888461 util: Fail to parse empty string in ParseMoney (MarcoFalke) fab30b6 util: Remove unused ParseMoney that takes a c_str (MarcoFalke) Pull request description: Supplying a fee rate or an amount on the command line as an empty string, which currently parses as `0` seems fragile and confusing. See for example the confusion in bitcoin#18214. Fixes bitcoin#18214 ACKs for top commit: Empact: Code Review ACK bitcoin@8888461 achow101: ACK 8888461 instagibbs: utACK bitcoin@8888461 Tree-SHA512: ac2d6b7fa89fe5809c34d5f49831042032591c34fb3c76908d72fed51e8bced41bf2b41dc1b3be34ee691a40463355649857a7a8f378709d38ae89503feb11c2
8888461 util: Fail to parse empty string in ParseMoney (MarcoFalke) fab30b6 util: Remove unused ParseMoney that takes a c_str (MarcoFalke) Pull request description: Supplying a fee rate or an amount on the command line as an empty string, which currently parses as `0` seems fragile and confusing. See for example the confusion in bitcoin#18214. Fixes bitcoin#18214 ACKs for top commit: Empact: Code Review ACK bitcoin@8888461 achow101: ACK 8888461 instagibbs: utACK bitcoin@8888461 Tree-SHA512: ac2d6b7fa89fe5809c34d5f49831042032591c34fb3c76908d72fed51e8bced41bf2b41dc1b3be34ee691a40463355649857a7a8f378709d38ae89503feb11c2
8888461 util: Fail to parse empty string in ParseMoney (MarcoFalke) fab30b6 util: Remove unused ParseMoney that takes a c_str (MarcoFalke) Pull request description: Supplying a fee rate or an amount on the command line as an empty string, which currently parses as `0` seems fragile and confusing. See for example the confusion in bitcoin#18214. Fixes bitcoin#18214 ACKs for top commit: Empact: Code Review ACK bitcoin@8888461 achow101: ACK 8888461 instagibbs: utACK bitcoin@8888461 Tree-SHA512: ac2d6b7fa89fe5809c34d5f49831042032591c34fb3c76908d72fed51e8bced41bf2b41dc1b3be34ee691a40463355649857a7a8f378709d38ae89503feb11c2
8888461 util: Fail to parse empty string in ParseMoney (MarcoFalke) fab30b6 util: Remove unused ParseMoney that takes a c_str (MarcoFalke) Pull request description: Supplying a fee rate or an amount on the command line as an empty string, which currently parses as `0` seems fragile and confusing. See for example the confusion in bitcoin#18214. Fixes bitcoin#18214 ACKs for top commit: Empact: Code Review ACK bitcoin@8888461 achow101: ACK 8888461 instagibbs: utACK bitcoin@8888461 Tree-SHA512: ac2d6b7fa89fe5809c34d5f49831042032591c34fb3c76908d72fed51e8bced41bf2b41dc1b3be34ee691a40463355649857a7a8f378709d38ae89503feb11c2
8888461 util: Fail to parse empty string in ParseMoney (MarcoFalke) fab30b6 util: Remove unused ParseMoney that takes a c_str (MarcoFalke) Pull request description: Supplying a fee rate or an amount on the command line as an empty string, which currently parses as `0` seems fragile and confusing. See for example the confusion in bitcoin#18214. Fixes bitcoin#18214 ACKs for top commit: Empact: Code Review ACK bitcoin@8888461 achow101: ACK 8888461 instagibbs: utACK bitcoin@8888461 Tree-SHA512: ac2d6b7fa89fe5809c34d5f49831042032591c34fb3c76908d72fed51e8bced41bf2b41dc1b3be34ee691a40463355649857a7a8f378709d38ae89503feb11c2
8888461 util: Fail to parse empty string in ParseMoney (MarcoFalke) fab30b6 util: Remove unused ParseMoney that takes a c_str (MarcoFalke) Pull request description: Supplying a fee rate or an amount on the command line as an empty string, which currently parses as `0` seems fragile and confusing. See for example the confusion in bitcoin#18214. Fixes bitcoin#18214 ACKs for top commit: Empact: Code Review ACK bitcoin@8888461 achow101: ACK 8888461 instagibbs: utACK bitcoin@8888461 Tree-SHA512: ac2d6b7fa89fe5809c34d5f49831042032591c34fb3c76908d72fed51e8bced41bf2b41dc1b3be34ee691a40463355649857a7a8f378709d38ae89503feb11c2
8888461 util: Fail to parse empty string in ParseMoney (MarcoFalke) fab30b6 util: Remove unused ParseMoney that takes a c_str (MarcoFalke) Pull request description: Supplying a fee rate or an amount on the command line as an empty string, which currently parses as `0` seems fragile and confusing. See for example the confusion in bitcoin#18214. Fixes bitcoin#18214 ACKs for top commit: Empact: Code Review ACK bitcoin@8888461 achow101: ACK 8888461 instagibbs: utACK bitcoin@8888461 Tree-SHA512: ac2d6b7fa89fe5809c34d5f49831042032591c34fb3c76908d72fed51e8bced41bf2b41dc1b3be34ee691a40463355649857a7a8f378709d38ae89503feb11c2
8888461 util: Fail to parse empty string in ParseMoney (MarcoFalke) fab30b6 util: Remove unused ParseMoney that takes a c_str (MarcoFalke) Pull request description: Supplying a fee rate or an amount on the command line as an empty string, which currently parses as `0` seems fragile and confusing. See for example the confusion in bitcoin#18214. Fixes bitcoin#18214 ACKs for top commit: Empact: Code Review ACK bitcoin@8888461 achow101: ACK 8888461 instagibbs: utACK bitcoin@8888461 Tree-SHA512: ac2d6b7fa89fe5809c34d5f49831042032591c34fb3c76908d72fed51e8bced41bf2b41dc1b3be34ee691a40463355649857a7a8f378709d38ae89503feb11c2
8888461 util: Fail to parse empty string in ParseMoney (MarcoFalke) fab30b6 util: Remove unused ParseMoney that takes a c_str (MarcoFalke) Pull request description: Supplying a fee rate or an amount on the command line as an empty string, which currently parses as `0` seems fragile and confusing. See for example the confusion in bitcoin#18214. Fixes bitcoin#18214 ACKs for top commit: Empact: Code Review ACK bitcoin@8888461 achow101: ACK 8888461 instagibbs: utACK bitcoin@8888461 Tree-SHA512: ac2d6b7fa89fe5809c34d5f49831042032591c34fb3c76908d72fed51e8bced41bf2b41dc1b3be34ee691a40463355649857a7a8f378709d38ae89503feb11c2
Current advice leads users like myself to add
-fallbackfee
alone which appears to do nothing.