This replaces one remaining instance of the literal "BTC" string with the CURRENCY_UNIT constant, as is done in most of the codebase already.
After this change, no instance of literal "BTC" remains anywhere in the RPC help texts.
This replaces one remaining instance of the literal "BTC" string with the CURRENCY_UNIT constant, as is done in most of the codebase already.
After this change, no instance of literal "BTC" remains anywhere in the RPC help texts.
3360 | @@ -3361,7 +3361,7 @@ static UniValue bumpfee(const JSONRPCRequest& request) 3361 | " the dust threshold."}, 3362 | {"fee_rate", RPCArg::Type::NUM, /* default */ "fallback to 'confTarget'", "FeeRate (NOT total fee) to pay, in " + CURRENCY_UNIT + " per kB\n" 3363 | " Specify a fee rate instead of relying on the built-in fee estimator.\n" 3364 | - " Must be at least 0.0001 BTC per kB higher than the current transaction fee rate.\n"}, 3365 | + " Must be at least 0.0001 " + CURRENCY_UNIT + " per kB higher than the current transaction fee rate.\n"},
"Must be at least 0.0001 " + CURRENCY_UNIT + " per kB higher than the current transaction fee rate.\n"},
Can shorten the string now that it is touched for other reasons
Makes sense, I've applied the change. I'll squash everything into a single commit when review is otherwise done.
I think this is ready to merge if it compiles
Concept ACK
FWIW:
$ git grep BTC -- "*.cpp" "*.h" ":(exclude)src/qt/" ":(exclude)src/wallet/test/" ":(exclude)src/test/" | grep -vE ': *(//|\*)'
src/policy/feerate.cpp:const std::string CURRENCY_UNIT = "BTC";
src/validation.cpp: LogPrint(BCLog::MEMPOOL, "replacing tx %s with %s for %s BTC additional fees, %d delta bytes\n",
src/wallet/rpcwallet.cpp: " Must be at least 0.0001 BTC per kB higher than the current transaction fee rate.\n"},
Concept ACK
FWIW:
$ git grep BTC -- "*.cpp" "*.h" ":(exclude)src/qt/" ":(exclude)src/wallet/test/" ":(exclude)src/test/" | grep -vE ': *(//|\*) .*' src/policy/feerate.cpp:const std::string CURRENCY_UNIT = "BTC"; src/validation.cpp: LogPrint(BCLog::MEMPOOL, "replacing tx %s with %s for %s BTC additional fees, %d delta bytes\n", src/wallet/rpcwallet.cpp: " Must be at least 0.0001 BTC per kB higher than the current transaction fee rate.\n"},
Good catch (I was only targeting the RPC help texts so far, as that is what I worked on when I noticed this). I've updated the PR, replacing also the validation.cpp instance (and squashed the commits).
973 | @@ -974,7 +974,7 @@ bool MemPoolAccept::Finalize(ATMPArgs& args, Workspace& ws) 974 | // Remove conflicting transactions from the mempool 975 | for (CTxMemPool::txiter it : allConflicting) 976 | { 977 | - LogPrint(BCLog::MEMPOOL, "replacing tx %s with %s for %s BTC additional fees, %d delta bytes\n", 978 | + LogPrint(BCLog::MEMPOOL, "replacing tx %s with %s for %s " + CURRENCY_UNIT + " additional fees, %d delta bytes\n",
LogPrint(BCLog::MEMPOOL, "replacing tx %s with %s for %s additional fees, %d delta bytes\n",
I think we can just remove the unit here
Good point, I agree as this is just a log message and not really user visible. I've removed it here.
Concept ACK.
This replaces one remaining instance of the literal "BTC" string with
the CURRENCY_UNIT constant, as is done in most of the codebase already.
The other remaining instance (which is just part of a log message and thus
not really user-visible) is just removed.
After this change, no instance of literal "BTC" remains anywhere in the
non-Qt and non-test codebase.
ACK 7df0cf719fecf1b8d09801295db8bd2137bfe033
ACK 7df0cf719fecf1b8d09801295db8bd2137bfe033 Doesn't change any translation strings so can go into 0.20.0.