-
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.
Merge pull request #173 from DecentralCardGame/publicnode
Publicnode
- Loading branch information
Showing
7 changed files
with
105 additions
and
30 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,17 @@ | ||
{ | ||
"rpcs": [ | ||
"https://cardchain-testnet-rpc.itrocket.net", | ||
"http://crowd.rpc.t.stavr.tech:21207", | ||
"https://rpc-testnet-cardchain.nodeist.net" | ||
], | ||
"peers": [ | ||
"cardchain-testnet-peer.itrocket.net:31656", | ||
"crowd.peer.stavr.tech:21206", | ||
"rpc-testnet-cardchain.nodeist.net:26656" | ||
], | ||
"snap_rpcs": [ | ||
"https://cardchain-testnet-rpc.itrocket.net:443", | ||
"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
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 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 was deleted.
Oops, something went wrong.