Skip to content

Commit

Permalink
disable iavl cache so we don't go OOM on bbn node
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Oct 29, 2024
1 parent dca3442 commit 9ddabfd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ func (m *Manager) RunBabylondResource(
"--btc-confirmation-depth=2 --additional-sender-account --btc-network=regtest "+
"--min-staking-time-blocks=200 --min-staking-amount-sat=10000 "+
"--epoch-interval=%d --slashing-pk-script=%s --btc-base-header=%s "+
"--covenant-quorum=1 --covenant-pks=%s && chmod -R 777 /home && babylond start --home=/home/node0/babylond --rpc.pprof_laddr=0.0.0.0:6060",
"--covenant-quorum=1 --covenant-pks=%s && "+
"chmod -R 777 /home && "+
"sed -i -e 's/iavl-cache-size = 781250/iavl-cache-size = 0/' /home/node0/babylond/config/app.toml && "+ // disable the cache otherwise we go OOM
"sed -i -e 's/iavl-disable-fastnode = false/iavl-disable-fastnode = true/' /home/node0/babylond/config/app.toml && "+
"babylond start --home=/home/node0/babylond --rpc.pprof_laddr=0.0.0.0:6060",
epochInterval, slashingPkScript, baseHeaderHex, bbn.NewBIP340PubKeyFromBTCPK(CovenantPubKey).MarshalHex()),
}

Expand Down

0 comments on commit 9ddabfd

Please sign in to comment.