1
0
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:
Roman Zeyde 2021-07-08 14:05:51 +03:00 committed by GitHub
commit 9c21a363e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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