Skip to content

Commit

Permalink
Merge pull request #30 from KoleBarnes/BugFix/network_name
Browse files Browse the repository at this point in the history
Fixed Bug where network_name was not set when using genesis_url.
  • Loading branch information
WadeBarnes authored Mar 29, 2021
2 parents 2c7b4a1 + 5afb3c7 commit 6a422bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fetch-validator-status/fetch_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def list_networks():
print(json.dumps(load_network_list(), indent=2))
exit()

network_name = None
if args.net:
log("Loading known network list ...")
networks = load_network_list()
Expand All @@ -119,6 +120,8 @@ def list_networks():

if args.genesis_url:
download_genesis_file(args.genesis_url, args.genesis_path)
if not network_name:
network_name = args.genesis_url
if not os.path.exists(args.genesis_path):
print("Set the GENESIS_URL or GENESIS_PATH environment variable or argument.\n", file=sys.stderr)
parser.print_help()
Expand Down

0 comments on commit 6a422bb

Please sign in to comment.