Skip to content

Commit b16b5bc

Browse files
committed
Merge #7371: [0.12] backports
236686b [init] Add missing help for args (MarcoFalke) 44438a1 [init] Fix error message of maxtxfee invalid amount (MarcoFalke) a74fa1f [Wallet] Transaction View: LastMonth calculation fixed (crowning-)
2 parents f4b2ce8 + 236686b commit b16b5bc

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/init.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,7 @@ std::string HelpMessage(HelpMessageMode mode)
313313
// Do not translate _(...) -help-debug options, Many technical terms, and only a very small audience, so is unnecessary stress to translators.
314314
string strUsage = HelpMessageGroup(_("Options:"));
315315
strUsage += HelpMessageOpt("-?", _("This help message"));
316+
strUsage += HelpMessageOpt("-version", _("Print version and exit"));
316317
strUsage += HelpMessageOpt("-alerts", strprintf(_("Receive and display P2P network alerts (default: %u)"), DEFAULT_ALERTS));
317318
strUsage += HelpMessageOpt("-alertnotify=<cmd>", _("Execute command when a relevant alert is received or we see a really long fork (%s in cmd is replaced by message)"));
318319
strUsage += HelpMessageOpt("-blocknotify=<cmd>", _("Execute command when the best block changes (%s in cmd is replaced by block hash)"));
@@ -424,8 +425,11 @@ std::string HelpMessage(HelpMessageMode mode)
424425
#endif
425426

426427
strUsage += HelpMessageGroup(_("Debugging/Testing options:"));
428+
strUsage += HelpMessageOpt("-uacomment=<cmt>", _("Append comment to the user agent string"));
427429
if (showDebug)
428430
{
431+
strUsage += HelpMessageOpt("-checkblockindex", strprintf("Do a full consistency check for mapBlockIndex, setBlockIndexCandidates, chainActive and mapBlocksUnlinked occasionally. Also sets -checkmempool (default: %u)", Params(CBaseChainParams::MAIN).DefaultConsistencyChecks()));
432+
strUsage += HelpMessageOpt("-checkmempool=<n>", strprintf("Run checks every <n> transactions (default: %u)", Params(CBaseChainParams::MAIN).DefaultConsistencyChecks()));
429433
strUsage += HelpMessageOpt("-checkpoints", strprintf("Disable expensive verification for known chain history (default: %u)", DEFAULT_CHECKPOINTS_ENABLED));
430434
#ifdef ENABLE_WALLET
431435
strUsage += HelpMessageOpt("-dblogsize=<n>", strprintf("Flush wallet database activity from memory to disk log every <n> megabytes (default: %u)", DEFAULT_WALLET_DBLOGSIZE));
@@ -448,6 +452,8 @@ std::string HelpMessage(HelpMessageMode mode)
448452
debugCategories += ", qt";
449453
strUsage += HelpMessageOpt("-debug=<category>", strprintf(_("Output debugging information (default: %u, supplying <category> is optional)"), 0) + ". " +
450454
_("If <category> is not supplied or if <category> = 1, output all debugging information.") + _("<category> can be:") + " " + debugCategories + ".");
455+
if (showDebug)
456+
strUsage += HelpMessageOpt("-nodebug", "Turn off debugging messages, same as -debug=0");
451457
strUsage += HelpMessageOpt("-gen", strprintf(_("Generate coins (default: %u)"), DEFAULT_GENERATE));
452458
strUsage += HelpMessageOpt("-genproclimit=<n>", strprintf(_("Set the number of threads for coin generation if enabled (-1 = all cores, default: %d)"), DEFAULT_GENERATE_THREADS));
453459
strUsage += HelpMessageOpt("-help-debug", _("Show all debugging options (usage: --help -help-debug)"));
@@ -456,6 +462,7 @@ std::string HelpMessage(HelpMessageMode mode)
456462
if (showDebug)
457463
{
458464
strUsage += HelpMessageOpt("-logtimemicros", strprintf("Add microsecond precision to debug timestamps (default: %u)", DEFAULT_LOGTIMEMICROS));
465+
strUsage += HelpMessageOpt("-mocktime=<n>", "Replace actual time with <n> seconds since epoch (default: 0)");
459466
strUsage += HelpMessageOpt("-limitfreerelay=<n>", strprintf("Continuously rate-limit free transactions to <n>*1000 bytes per minute (default: %u)", DEFAULT_LIMITFREERELAY));
460467
strUsage += HelpMessageOpt("-relaypriority", strprintf("Require high priority for relaying free or low-fee transactions (default: %u)", DEFAULT_RELAYPRIORITY));
461468
strUsage += HelpMessageOpt("-maxsigcachesize=<n>", strprintf("Limit size of signature cache to <n> MiB (default: %u)", DEFAULT_MAX_SIG_CACHE_SIZE));
@@ -492,6 +499,7 @@ std::string HelpMessage(HelpMessageMode mode)
492499
strUsage += HelpMessageOpt("-server", _("Accept command line and JSON-RPC commands"));
493500
strUsage += HelpMessageOpt("-rest", strprintf(_("Accept public REST requests (default: %u)"), DEFAULT_REST_ENABLE));
494501
strUsage += HelpMessageOpt("-rpcbind=<addr>", _("Bind to given address to listen for JSON-RPC connections. Use [host]:port notation for IPv6. This option can be specified multiple times (default: bind to all interfaces)"));
502+
strUsage += HelpMessageOpt("-rpccookiefile=<loc>", _("Location of the auth cookie (default: data dir)"));
495503
strUsage += HelpMessageOpt("-rpcuser=<user>", _("Username for JSON-RPC connections"));
496504
strUsage += HelpMessageOpt("-rpcpassword=<pw>", _("Password for JSON-RPC connections"));
497505
strUsage += HelpMessageOpt("-rpcauth=<userpw>", _("Username and hashed password for JSON-RPC connections. The field <userpw> comes in the format: <USERNAME>:<SALT>$<HASH>. A canonical python script is included in share/rpcuser. This option can be specified multiple times"));
@@ -979,7 +987,7 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler)
979987
{
980988
CAmount nMaxFee = 0;
981989
if (!ParseMoney(mapArgs["-maxtxfee"], nMaxFee))
982-
return InitError(strprintf(_("Invalid amount for -maxtxfee=<amount>: '%s'"), mapArgs["-maptxfee"]));
990+
return InitError(strprintf(_("Invalid amount for -maxtxfee=<amount>: '%s'"), mapArgs["-maxtxfee"]));
983991
if (nMaxFee > nHighTransactionMaxFeeWarning)
984992
InitWarning(_("-maxtxfee is set very high! Fees this large could be paid on a single transaction."));
985993
maxTxFee = nMaxFee;

src/qt/transactionview.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ void TransactionView::chooseDate(int idx)
267267
break;
268268
case LastMonth:
269269
transactionProxyModel->setDateRange(
270-
QDateTime(QDate(current.year(), current.month()-1, 1)),
270+
QDateTime(QDate(current.year(), current.month(), 1).addMonths(-1)),
271271
QDateTime(QDate(current.year(), current.month(), 1)));
272272
break;
273273
case ThisYear:

0 commit comments

Comments
 (0)