Skip to content

Commit 8c7bdbe

Browse files
jonatackfurszy
authored andcommitted
config: use default value in -asmap config
1 parent de39fab commit 8c7bdbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,7 @@ std::string HelpMessage(HelpMessageMode mode)
475475

476476
strUsage += HelpMessageGroup(_("Connection options:"));
477477
strUsage += HelpMessageOpt("-addnode=<ip>", _("Add a node to connect to and attempt to keep the connection open"));
478+
strUsage += HelpMessageOpt("-asmap=<file>", strprintf("Specify asn mapping used for bucketing of the peers (default: %s). Path should be relative to the -datadir path.", DEFAULT_ASMAP_FILENAME);
478479
strUsage += HelpMessageOpt("-banscore=<n>", strprintf(_("Threshold for disconnecting misbehaving peers (default: %u)"), DEFAULT_BANSCORE_THRESHOLD));
479480
strUsage += HelpMessageOpt("-bantime=<n>", strprintf(_("Number of seconds to keep misbehaving peers from reconnecting (default: %u)"), DEFAULT_MISBEHAVING_BANTIME));
480481
strUsage += HelpMessageOpt("-bind=<addr>", _("Bind to given address and always listen on it. Use [host]:port notation for IPv6"));
@@ -500,7 +501,6 @@ std::string HelpMessage(HelpMessageMode mode)
500501
strUsage += HelpMessageOpt("-timeout=<n>", strprintf(_("Specify connection timeout in milliseconds (minimum: 1, default: %d)"), DEFAULT_CONNECT_TIMEOUT));
501502
strUsage += HelpMessageOpt("-torcontrol=<ip>:<port>", strprintf(_("Tor control port to use if onion listening enabled (default: %s)"), DEFAULT_TOR_CONTROL));
502503
strUsage += HelpMessageOpt("-torpassword=<pass>", _("Tor control port password (default: empty)"));
503-
strUsage += HelpMessageOpt("-asmap=<file>", "Specify asn mapping used for bucketing of the peers. Path should be relative to the -datadir path.");
504504
strUsage += HelpMessageOpt("-upnp", strprintf(_("Use UPnP to map the listening port (default: %u)"), DEFAULT_UPNP));
505505
#ifdef USE_NATPMP
506506
strUsage += HelpMessageOpt("-natpmp", strprintf("Use NAT-PMP to map the listening port (default: %s)", DEFAULT_NATPMP ? "1 when listening and no -proxy" : "0"));

0 commit comments

Comments
 (0)