Skip to content

Commit

Permalink
disable iavl in scripts (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 authored Nov 8, 2024
1 parent 620261e commit 4bfdf51
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ services:
security_opt:
- seccomp:unconfined
environment:
- SNAPSHOT_FILE=devnet_0910.tar.gz
- RPC_URL=https://rpc.devnet.babylonchain.io
- SNAPSHOT_FILE=babylon.tar.gz
- RPC_URL=https://rpc.devnet.babylonlabs.io
volumes:
- ./scripts/init_master.sh:/scripts/init_master.sh
- ./snapshots:/snapshots
Expand Down Expand Up @@ -46,7 +46,7 @@ services:
babylond --home /root/.babylond start --x-crisis-skip-assert-invariants --log_format 'plain' 2>&1 | tee /root/.babylond/babylond.log
"
environment:
- RPC_URL=https://rpc.devnet.babylonchain.io
- RPC_URL=https://rpc.devnet.babylonlabs.io
volumes:
- ./scripts/init_follower.sh:/scripts/init_follower.sh
- ./babylond_data_follower:/root/.babylond
Expand Down
4 changes: 4 additions & 0 deletions scripts/init_follower.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ sed -i 's/timeout_commit = "5s"/timeout_commit = "30s"/' /root/.babylond/config/
# Change pprof_laddr to 0.0.0.0:6060
sed -i 's/^pprof_laddr = "localhost:6060"/pprof_laddr = "0.0.0.0:6060"/' /root/.babylond/config/config.toml

# Disable iavl cache otherwise OOM
sed -i 's/iavl-cache-size = 781250/iavl-cache-size = 0/' /root/.babylond/config/app.toml
sed -i 's/iavl-disable-fastnode = false/iavl-disable-fastnode = true/' /root/.babylond/config/app.toml

echo "Follower Node Initialized with updated configuration."
echo "Master Node ID: $MASTER_NODE_ID"
echo "persistent_peers set to: $MASTER_NODE_ID@master-node:26656"
Expand Down
4 changes: 4 additions & 0 deletions scripts/init_master.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,8 @@ sed -i 's/network = "mainnet"/network = "signet"/' /root/.babylond/config/app.to
# Increase timeout_commit to 30s in config.toml
sed -i 's/timeout_commit = "5s"/timeout_commit = "30s"/' /root/.babylond/config/config.toml

# Disable iavl cache otherwise OOM
sed -i 's/iavl-cache-size = 781250/iavl-cache-size = 0/' /root/.babylond/config/app.toml
sed -i 's/iavl-disable-fastnode = false/iavl-disable-fastnode = true/' /root/.babylond/config/app.toml

echo "Master Node Initialized with Snapshot."

0 comments on commit 4bfdf51

Please sign in to comment.