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

This commit is contained in:
The MMGen Project 2025-05-28 11:40:40 +00:00
commit ad6bd3cff7
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
3 changed files with 8 additions and 3 deletions

View file

@ -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
""",

View file

@ -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
""",

View file

@ -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'