commit
21ee952d0e
@ -127,13 +127,13 @@ LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.heigh
|
||||
SYNC_BLOCK_HEIGHT=$(($LATEST_HEIGHT - 3000))
|
||||
SYNC_BLOCK_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$SYNC_BLOCK_HEIGHT" | jq -r .result.block_id.hash)
|
||||
|
||||
sed -i.bak -e "s|^enable *=.*|enable = true|" $HOME/.teritorid/config/config.toml
|
||||
sed -i.bak -e "s|^enable *=.*|enable = true|" $HOME/.canine/config/config.toml
|
||||
sed -i.bak -e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
|
||||
$HOME/.teritorid/config/config.toml
|
||||
$HOME/.canine/config/config.toml
|
||||
sed -i.bak -e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
|
||||
$HOME/.teritorid/config/config.toml
|
||||
$HOME/.canine/config/config.toml
|
||||
sed -i.bak -e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \
|
||||
$HOME/.teritorid/config/config.toml
|
||||
$HOME/.canine/config/config.toml
|
||||
```
|
||||
|
||||
When you state sync, you can start with the latest version of `canined`.
|
||||
|
Loading…
Reference in New Issue
Block a user