From f2c288a98a212675ee900ef36758db754fbcacec Mon Sep 17 00:00:00 2001 From: Been Lee Date: Wed, 3 Jun 2026 13:10:26 +0900 Subject: [PATCH] Fix stale Bitcoin command names in user messages --- src/BGLd.cpp | 2 +- src/qt/BGL.cpp | 4 ++-- src/rpc/blockchain.cpp | 4 ++-- src/txdb.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/BGLd.cpp b/src/BGLd.cpp index a8ab307fdc..93c4aedb95 100644 --- a/src/BGLd.cpp +++ b/src/BGLd.cpp @@ -125,7 +125,7 @@ static bool ParseArgs(ArgsManager& args, int argc, char* argv[]) // Error out when loose non-argument tokens are encountered on command line for (int i = 1; i < argc; i++) { if (!IsSwitchChar(argv[i][0])) { - return InitError(Untranslated(strprintf("Command line contains unexpected token '%s', see bitcoind -h for a list of options.", argv[i]))); + return InitError(Untranslated(strprintf("Command line contains unexpected token '%s', see BGLd -h for a list of options.", argv[i]))); } } return true; diff --git a/src/qt/BGL.cpp b/src/qt/BGL.cpp index 291dbdbe30..f9d9ac7014 100644 --- a/src/qt/BGL.cpp +++ b/src/qt/BGL.cpp @@ -572,10 +572,10 @@ int GuiMain(int argc, char* argv[]) return EXIT_FAILURE; } if (invalid_token) { - InitError(Untranslated(strprintf("Command line contains unexpected token '%s', see bitcoin-qt -h for a list of options.", argv[i]))); + InitError(Untranslated(strprintf("Command line contains unexpected token '%s', see BGL-qt -h for a list of options.", argv[i]))); QMessageBox::critical(nullptr, PACKAGE_NAME, // message cannot be translated because translations have not been initialized - QString::fromStdString("Command line contains unexpected token '%1', see bitcoin-qt -h for a list of options.").arg(QString::fromStdString(argv[i]))); + QString::fromStdString("Command line contains unexpected token '%1', see BGL-qt -h for a list of options.").arg(QString::fromStdString(argv[i]))); return EXIT_FAILURE; } } diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index 67b756aebe..25c12aefe2 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -2361,7 +2361,7 @@ static RPCHelpMan scanblocks() { return RPCHelpMan{"scanblocks", "\nReturn relevant blockhashes for given descriptors (requires blockfilterindex).\n" - "This call may take several minutes. Make sure to use no RPC timeout (bitcoin-cli -rpcclienttimeout=0)", + "This call may take several minutes. Make sure to use no RPC timeout (BGL-cli -rpcclienttimeout=0)", { scan_action_arg_desc, scan_objects_arg_desc, @@ -2799,7 +2799,7 @@ static RPCHelpMan loadtxoutset() "Meanwhile, the original chainstate will complete the initial block download process in " "the background, eventually validating up to the block that the snapshot is based upon.\n\n" - "The result is a usable bitcoind instance that is current with the network tip in a " + "The result is a usable BGLd instance that is current with the network tip in a " "matter of minutes rather than hours. UTXO snapshot are typically obtained from " "third-party sources (HTTP, torrent, etc.) which is reasonable since their " "contents are always checked by hash.\n\n" diff --git a/src/txdb.cpp b/src/txdb.cpp index dbbb875bfd..e1d3181737 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -100,7 +100,7 @@ bool CCoinsViewDB::BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock, boo std::vector old_heads = GetHeadBlocks(); if (old_heads.size() == 2) { if (old_heads[0] != hashBlock) { - LogPrintLevel(BCLog::COINDB, BCLog::Level::Error, "The coins database detected an inconsistent state, likely due to a previous crash or shutdown. You will need to restart bitcoind with the -reindex-chainstate or -reindex configuration option.\n"); + LogPrintLevel(BCLog::COINDB, BCLog::Level::Error, "The coins database detected an inconsistent state, likely due to a previous crash or shutdown. You will need to restart BGLd with the -reindex-chainstate or -reindex configuration option.\n"); } assert(old_heads[0] == hashBlock); old_tip = old_heads[1];