Update 4_mainnet.md
Changed default node folder from .teritori to .canine
This commit is contained in:
parent
f95ff7c3de
commit
3bacdc87c4
@ -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_HEIGHT=$(($LATEST_HEIGHT - 3000))
|
||||||
SYNC_BLOCK_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$SYNC_BLOCK_HEIGHT" | jq -r .result.block_id.hash)
|
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\"|" \
|
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|" \
|
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\"|" \
|
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`.
|
When you state sync, you can start with the latest version of `canined`.
|
||||||
|
Loading…
Reference in New Issue
Block a user