Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: change IAVL size #334

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Improvements

- [#316](https://github.com/babylonlabs-io/babylon/pull/316) Add testnet upgrade data
- [#334](https://github.com/babylonlabs-io/babylon/pull/334) Default IAVL cache size

### Bug fixes

Expand Down
7 changes: 3 additions & 4 deletions cmd/babylond/cmd/testnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,9 @@ 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
// IAVLCacheSize of 5000 shouldn't exceed memory usage of 3GB
babylonConfig.IAVLCacheSize = 5000
babylonConfig.IAVLDisableFastNode = false

var (
genAccounts []authtypes.GenesisAccount
Expand Down