Skip to content

Commit

Permalink
Add --btc-signet
Browse files Browse the repository at this point in the history
  • Loading branch information
Sjors committed Nov 28, 2023
1 parent 34b681a commit 08b9a93
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions otsclient/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ def make_common_options_arg_parser():
btc_net_group.add_argument('--btc-testnet', dest='btc_net', action='store_const',
const='testnet', default='mainnet',
help='Use Bitcoin testnet rather than mainnet')
btc_net_group.add_argument('--btc-signet', dest='btc_net', action='store_const',
const='signet', default='mainnet',
help='Use Bitcoin signet rather than mainnet')
btc_net_group.add_argument('--btc-regtest', dest='btc_net', action='store_const',
const='regtest',
help='Use Bitcoin regtest rather than mainnet')
Expand Down Expand Up @@ -135,6 +138,8 @@ def setup_bitcoin():
"""
if args.btc_net == 'testnet':
bitcoin.SelectParams('testnet')
elif args.btc_net == 'signet':
bitcoin.SelectParams('signet')
elif args.btc_net == 'regtest':
bitcoin.SelectParams('regtest')
elif args.btc_net == 'mainnet':
Expand Down

0 comments on commit 08b9a93

Please sign in to comment.