diff --git a/docker-compose.yml b/docker-compose.yml index 9a74a5f..ef25b19 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 @@ -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 diff --git a/scripts/init_follower.sh b/scripts/init_follower.sh index aca3fc9..92e3eb7 100755 --- a/scripts/init_follower.sh +++ b/scripts/init_follower.sh @@ -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" diff --git a/scripts/init_master.sh b/scripts/init_master.sh index fcfef23..bec4b2d 100755 --- a/scripts/init_master.sh +++ b/scripts/init_master.sh @@ -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." \ No newline at end of file