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 <noreply@anthropic.com>
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
+4
-4
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user