Skip to content

Commit

Permalink
change defaults for cache (#235)
Browse files Browse the repository at this point in the history
In case of large values of iavl cache Babylon hits oom error.
  • Loading branch information
KonradStaniec authored Oct 29, 2024
1 parent fcc6fdc commit c9a55a5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## Unreleased

### Improvements

* [#235](https://github.com/babylonlabs-io/babylon/pull/235) Change default values
for iavl cache when using `testnet` command

## v0.14.1

### API Breaking
Expand Down
5 changes: 5 additions & 0 deletions cmd/babylond/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,11 @@ func InitTestnet(
babylonConfig.GRPC.Enable = true
babylonConfig.GRPC.Address = "0.0.0.0:9090"

// Disable IAVL cache by default as Babylon leaf nodes can be large, and in case
// of big cache values, Babylon node can run out of memory.
babylonConfig.IAVLCacheSize = 0
babylonConfig.IAVLDisableFastNode = true

var (
genAccounts []authtypes.GenesisAccount
genBalances []banktypes.Balance
Expand Down

0 comments on commit c9a55a5

Please sign in to comment.