-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18e6955
commit b6752fb
Showing
5 changed files
with
81 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"rpcs": [ | ||
"http://crowd.rpc.t.stavr.tech:21207", | ||
"https://cardchain-testnet-rpc.itrocket.net", | ||
"https://rpc-testnet-cardchain.nodeist.net" | ||
], | ||
"peers": [ | ||
"crowd.peer.stavr.tech:21206", | ||
"cardchain-testnet-peer.itrocket.net:31656", | ||
"rpc-testnet-cardchain.nodeist.net:26656" | ||
], | ||
"snap_rpcs": [ | ||
"http://crowd.rpc.t.stavr.tech:21207", | ||
"https://rpc-testnet-cardchain.nodeist.net:443" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
import json | ||
import requests | ||
import tendermint_chunked_genesis_download as tcgd | ||
f = open('syncnode.txt', 'r') | ||
|
||
tcgd.download_genesis('http://'+f.read()+':26657/') | ||
with open('peer_nodes.json', 'r') as f: | ||
data = json.load(f) | ||
|
||
for url in data['rpcs']: | ||
try: | ||
page = requests.get(url) | ||
print(url, page.status_code) | ||
tcgd.download_genesis(url) | ||
break | ||
except (requests.exceptions.HTTPError, requests.exceptions.ConnectionError): | ||
print("Error") |
This file was deleted.
Oops, something went wrong.