From 9c6ccbb7262640754a388f997d8ebfa127f5ba9b Mon Sep 17 00:00:00 2001 From: DanS Date: Tue, 7 Jul 2026 06:35:46 +0200 Subject: [PATCH] Fix dragonx-cli -rpcport help default: 18030 (hush) -> 21769 (DragonX) The -rpcport help string in bitcoin-cli.cpp hardcoded hush's 18030; the actual default (BaseParams().RPCPort()) is DragonX's 21769, so this was misleading help text only (the CLI already connects to 21769). Set to 21769 and regenerated doc/man/dragonx-cli.1 from the rebuilt binary. NOTE: a separate hush 18030 leftover remains in src/rpc/net.cpp:357 (getpeerinfo help example address) - daemon RPC help, out of scope here. Staged on 176; not pushed. Co-Authored-By: Claude Opus 4.8 (1M context) --- doc/man/dragonx-cli.1 | 8 ++++---- src/bitcoin-cli.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/man/dragonx-cli.1 b/doc/man/dragonx-cli.1 index fd756420b..43b43f2cc 100644 --- a/doc/man/dragonx-cli.1 +++ b/doc/man/dragonx-cli.1 @@ -1,9 +1,9 @@ .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.1. -.TH DRAGONX "1" "July 2026" "DragonX RPC client version v1.0.3-4caf2fc68" "User Commands" +.TH DRAGONX "1" "July 2026" "DragonX RPC client version v1.0.3-95aeaed0c-dirty" "User Commands" .SH NAME -DragonX \- manual page for DragonX RPC client version v1.0.3-4caf2fc68 +DragonX \- manual page for DragonX RPC client version v1.0.3-95aeaed0c-dirty .SH DESCRIPTION -DragonX RPC client version v1.0.3\-4caf2fc68 +DragonX RPC client version v1.0.3\-95aeaed0c\-dirty .PP In order to ensure you are adequately protecting your privacy when using DragonX, please see . @@ -47,7 +47,7 @@ Send commands to node running on (default: 127.0.0.1) .HP \fB\-rpcport=\fR .IP -Connect to JSON\-RPC on (default: 18030 ) +Connect to JSON\-RPC on (default: 21769 ) .HP \fB\-rpcwait\fR .IP diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index 7ad48fe6a..84e4c0846 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -53,7 +53,7 @@ std::string HelpMessageCli() strUsage += HelpMessageOpt("-regtest", _("Enter regression test mode, which uses a special chain in which blocks can be " "solved instantly. This is intended for regression testing tools and app development.")); strUsage += HelpMessageOpt("-rpcconnect=", strprintf(_("Send commands to node running on (default: %s)"), "127.0.0.1")); - strUsage += HelpMessageOpt("-rpcport=", strprintf(_("Connect to JSON-RPC on (default: %u )"), 18030)); + strUsage += HelpMessageOpt("-rpcport=", strprintf(_("Connect to JSON-RPC on (default: %u )"), 21769)); strUsage += HelpMessageOpt("-rpcwait", _("Wait for RPC server to start")); strUsage += HelpMessageOpt("-rpcuser=", _("Username for JSON-RPC connections")); strUsage += HelpMessageOpt("-rpcpassword=", _("Password for JSON-RPC connections"));