Skip to content

Conversation

instagibbs
Copy link
Member

Current advice leads users like myself to add -fallbackfee alone which appears to do nothing.

@maflcko maflcko added the Docs label Feb 27, 2020
@maflcko maflcko changed the title Give slightly more understandable advice when needing -fallbackfee wallet: Give slightly more understandable advice when needing -fallbackfee Feb 27, 2020
@DrahtBot
Copy link
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, 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;
Copy link
Member

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

Copy link
Member Author

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", ""));

@instagibbs instagibbs closed this Feb 28, 2020
fanquake added a commit that referenced this pull request Feb 29, 2020
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
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Feb 29, 2020
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
sidhujag pushed a commit to syscoin-core/syscoin that referenced this pull request Nov 10, 2020
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
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Feb 15, 2022
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Nov 8, 2022
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
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Nov 15, 2022
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
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Nov 25, 2022
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
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Nov 25, 2022
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
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Dec 6, 2022
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
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Dec 13, 2022
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
Munkybooty pushed a commit to Munkybooty/dash that referenced this pull request Dec 27, 2022
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants