Browse Source

tool, txbump: add proxy support; proto.rune.params: network name fixes

The MMGen Project 7 months ago
parent
commit
ad6bd3cff7
3 changed files with 8 additions and 3 deletions
  1. 3 0
      mmgen/main_tool.py
  2. 3 1
      mmgen/main_txbump.py
  3. 2 2
      mmgen/proto/rune/params.py

+ 3 - 0
mmgen/main_tool.py

@@ -48,6 +48,9 @@ opts_data = {
 			-- -t, --type=t           Specify address type (valid choices: 'legacy',
 			+                         'compressed', 'segwit', 'bech32', 'zcash_z')
 			-- -v, --verbose          Produce more verbose output
+			-- -x, --proxy=P          Proxy HTTP connections via SOCKS5h proxy ‘P’ (host:port).
+			+                         Use special value ‘env’ to honor *_PROXY environment
+			+                         vars instead.
 			e- -X, --cached-balances  Use cached balances
 			-- -y, --yes              Answer 'yes' to prompts, suppress non-essential output
 """,

+ 3 - 1
mmgen/main_txbump.py

@@ -85,7 +85,9 @@ opts_data = {
 			e- -w, --wait             Wait for transaction confirmation
 			-- -W, --allow-non-wallet-swap Allow signing of swap transactions that send funds
 			+                         to non-wallet addresses
-			-- -x, --proxy=P          Fetch the swap quote via SOCKS5 proxy ‘P’ (host:port)
+			-- -x, --proxy=P          Fetch the swap quote via SOCKS5h proxy ‘P’ (host:port).
+			+                         Use special value ‘env’ to honor *_PROXY environment
+			+                         vars instead.
 			-- -y, --yes              Answer 'yes' to prompts, suppress non-essential output
 			-- -z, --show-hash-presets Show information on available hash presets
 """,

+ 2 - 2
mmgen/proto/rune/params.py

@@ -56,8 +56,8 @@ class mainnet(CoinProtocol.Secp256k1):
 				hrp  = self.bech32_hrp,
 				data = bech32.convertbits(list(pubhash), 8, 5)))
 
-class stagenet(mainnet):
+class testnet(mainnet): # testnet is stagenet
 	bech32_hrp = 'sthor'
 
-class testnet(stagenet): # testnet is deprecated
+class regtest(testnet): # regtest is deprecated testnet
 	bech32_hrp = 'tthor'