From b9c5498bd2cf1aa541fbef709fbf353a0b9efc7a Mon Sep 17 00:00:00 2001 From: DanS Date: Thu, 26 Nov 2026 22:13:37 -0600 Subject: [PATCH] docs: DragonX P2P port is 21768; fix sdl_checkpoints example developer-notes.md and tor.md still gave 18030 (the HUSH3 port) as the DragonX P2P port, contradicting the README. DragonX derives 21768 from its chain parameters (hush_utils.h), as contrib/seeds shows. The tor.md torrc example now maps 21768 to 127.0.0.1:21768, matching what torcontrol.cpp's ADD_ONION uses (GetListenPort() for both). sdl_checkpoints.pl: the "another chain" example now passes -ac_name, since ./src/dragonx-cli is already the default. Co-Authored-By: Claude Opus 5.5 --- contrib/sdl_checkpoints.pl | 2 +- doc/developer-notes.md | 2 +- doc/tor.md | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/contrib/sdl_checkpoints.pl b/contrib/sdl_checkpoints.pl index 4629054f1..9ae95d850 100755 --- a/contrib/sdl_checkpoints.pl +++ b/contrib/sdl_checkpoints.pl @@ -11,7 +11,7 @@ use warnings; use strict; # call this script like this to generate checkpoints for another chain: -# CLI=./src/dragonx-cli ./contrib/sdl_checkpoints.pl ... +# CLI="./src/dragonx-cli -ac_name=OTHERCHAIN" ./contrib/sdl_checkpoints.pl ... my $cli = $ENV{CLI} || "./src/dragonx-cli"; my $gethash = "$cli getblockhash"; diff --git a/doc/developer-notes.md b/doc/developer-notes.md index 40ed1fe18..db9af8e64 100644 --- a/doc/developer-notes.md +++ b/doc/developer-notes.md @@ -311,7 +311,7 @@ Threads - ThreadMapPort : Universal plug-and-play startup/shutdown -- ThreadSocketHandler : Sends/Receives data from peers on the P2P port (18030 on DragonX mainnet). +- ThreadSocketHandler : Sends/Receives data from peers on the P2P port (21768 on DragonX mainnet). - ThreadOpenAddedConnections : Opens network connections to added nodes. diff --git a/doc/tor.md b/doc/tor.md index 674a9d0f7..cf70bfc1b 100644 --- a/doc/tor.md +++ b/doc/tor.md @@ -160,11 +160,11 @@ You can also manually configure your node to be reachable from the Tor network. Add these lines to your `/etc/tor/torrc` (or equivalent config file): HiddenServiceDir /var/lib/tor/dragonx-service/ - HiddenServicePort 18030 127.0.0.1:18032 + HiddenServicePort 21768 127.0.0.1:21768 The directory can be different of course, but virtual port numbers should be equal to -your dragonxd's P2P listen port (18030 by default), and target addresses and ports -should be equal to binding address and port for inbound Tor connections (127.0.0.1:18032 by default). +your dragonxd's P2P listen port (21768 by default), and target addresses and ports +should be equal to binding address and port for inbound Tor connections (127.0.0.1:21768 by default). -externalip=X You can tell dragonx about its publicly reachable addresses using this option, and this can be an onion address. Given the above @@ -204,7 +204,7 @@ as well, use `discover` instead: ./dragonxd ... -discover -and open port 18030 on your firewall (or use port mapping, i.e., `-upnp` or `-natpmp`). +and open port 21768 on your firewall (or use port mapping, i.e., `-upnp` or `-natpmp`). If you only want to use Tor to reach .onion addresses, but not use it as a proxy for normal IPv4/IPv6 communication, use: