Skip to content

Commit

Permalink
second rpc went down, had to duplicate
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic authored Jan 23, 2022
1 parent 84a83f9 commit d172a19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osmosis-installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def stateSyncInit ():
LATEST_HEIGHT= subprocess.run(["curl -s http://osmo-sync.blockpane.com:26657/block | jq -r .result.block.header.height"], capture_output=True, shell=True, text=True)
TRUST_HEIGHT= str(int(LATEST_HEIGHT.stdout.strip()) - 1500)
TRUST_HASH= subprocess.run(["curl -s \"http://osmo-sync.blockpane.com:26657/block?height="+str(TRUST_HEIGHT)+"\" | jq -r .result.block_id.hash"], capture_output=True, shell=True, text=True)
RPCs = "osmo-sync.blockpane.com:26657,51.250.2.242:26657"
RPCs = "osmo-sync.blockpane.com:26657,osmo-sync.blockpane.com:26657"
subprocess.run(["sed -i.bak -E 's/enable = false/enable = true/g' "+HOME.stdout.strip()+"/.osmosisd/config/config.toml"], shell=True)
subprocess.run(["sed -i.bak -E 's/rpc_servers = \"\"/rpc_servers = \""+RPCs+"\"/g' "+HOME.stdout.strip()+"/.osmosisd/config/config.toml"], shell=True)
subprocess.run(["sed -i.bak -E 's/trust_height = 0/trust_height = "+TRUST_HEIGHT+"/g' "+HOME.stdout.strip()+"/.osmosisd/config/config.toml"], shell=True)
Expand Down

0 comments on commit d172a19

Please sign in to comment.