upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/src/main_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r--src/main_gui.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index 943799f..0a961bf 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -118,7 +118,7 @@ static void PrintUsage()
118 printf(" wallet-crypto, wallet-encrypt, wallet-portability,\n"); 118 printf(" wallet-crypto, wallet-encrypt, wallet-portability,\n");
119 printf(" net-message,\n"); 119 printf(" net-message,\n");
120 printf(" consensus-limits, pool-stratum,\n"); 120 printf(" consensus-limits, pool-stratum,\n");
121 printf(" parse-money, socks5-proxy, or managed-tor\n"); 121 printf(" parse-money, network-params, socks5-proxy, or managed-tor\n");
122 printf("\n"); 122 printf("\n");
123 printf("Mining mode:\n"); 123 printf("Mining mode:\n");
124 printf(" /operator\n"); 124 printf(" /operator\n");
@@ -143,7 +143,8 @@ static void PrintUsage()
143 printf(" /onionservice=HOST.onion:PORT (advertise this node's Tor hidden service)\n"); 143 printf(" /onionservice=HOST.onion:PORT (advertise this node's Tor hidden service)\n");
144 printf("\n"); 144 printf("\n");
145 printf("Network:\n"); 145 printf("Network:\n");
146 printf(" /port=N (P2P listen port, default 8433)\n"); 146 printf(" /testnet (isolated test network datadir, port, and magic)\n");
147 printf(" /port=N (P2P listen port, default 8433; testnet 18433)\n");
147 printf(" /socks=HOST:PORT (SOCKS5 proxy for Nostr, .btf relay, and onion dials)\n"); 148 printf(" /socks=HOST:PORT (SOCKS5 proxy for Nostr, .btf relay, and onion dials)\n");
148 printf(" /tor[=HOST:PORT] (Tor mode; default SOCKS5 proxy is 127.0.0.1:9050)\n"); 149 printf(" /tor[=HOST:PORT] (Tor mode; default SOCKS5 proxy is 127.0.0.1:9050)\n");
149 printf(" /managedtor[=PATH] (start Tor, create a hidden service, advertise its onion)\n"); 150 printf(" /managedtor[=PATH] (start Tor, create a hidden service, advertise its onion)\n");
@@ -205,6 +206,8 @@ static void ParseStartupArguments(int argc, char* argv[])
205 if (arg(argc,argv,"/datadir") || arg(argc,argv,"-datadir")) 206 if (arg(argc,argv,"/datadir") || arg(argc,argv,"-datadir"))
206 strSetDataDir = argval2(argc, argv, "/datadir", "-datadir"); 207 strSetDataDir = argval2(argc, argv, "/datadir", "-datadir");
207 208
209 SelectNetworkParams(arg(argc, argv, "/testnet") || arg(argc, argv, "-testnet"));
210
208 if (arg(argc,argv,"/debug") || arg(argc,argv,"-debug")) 211 if (arg(argc,argv,"/debug") || arg(argc,argv,"-debug"))
209 fDebug = true; 212 fDebug = true;
210 213