mirror of
https://github.com/romanz/electrs.git
synced 2024-11-19 09:54:09 +01:00
Merge pull request #425 from biteskola/master
Inside contrib/addr.py example, add regtest and signet networks
This commit is contained in:
commit
9c21a363e6
@ -8,12 +8,20 @@ import client
|
||||
def main():
|
||||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument('--testnet', action='store_true')
|
||||
parser.add_argument('--regtest', action='store_true')
|
||||
parser.add_argument('--signet', action='store_true')
|
||||
parser.add_argument('address', nargs='+')
|
||||
args = parser.parse_args()
|
||||
|
||||
if args.testnet:
|
||||
port = 60001
|
||||
from pycoin.symbols.xtn import network
|
||||
if args.regtest:
|
||||
port = 60401
|
||||
from pycoin.symbols.xrt import network
|
||||
if args.signet:
|
||||
port = 60601
|
||||
from pycoin.symbols.xtn import network
|
||||
else:
|
||||
port = 50001
|
||||
from pycoin.symbols.btc import network
|
||||
|
Loading…
Reference in New Issue
Block a user