Skip to content

Commit

Permalink
Fixes units related to trie cap limit config
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoximenes committed Jan 24, 2025
1 parent e9bda8d commit efa2661
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion execution/gethexec/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var DefaultCachingConfig = CachingConfig{
TrieTimeLimit: time.Hour,
TrieDirtyCache: 1024,
TrieCleanCache: 600,
TrieCapLimit: 100 * 1024 * 1024,
TrieCapLimit: 100,
SnapshotCache: 400,
DatabaseCache: 2048,
SnapshotRestoreGasLimit: 300_000_000_000,
Expand Down
2 changes: 1 addition & 1 deletion execution/gethexec/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ func (n *ExecutionNode) MessageIndexToBlockNumber(messageNum arbutil.MessageInde
}

func (n *ExecutionNode) Maintenance() error {
trieCapLimitBytes := 1024 * uint64(n.ConfigFetcher().Caching.TrieCapLimit)
trieCapLimitBytes := 1024 * 1024 * uint64(n.ConfigFetcher().Caching.TrieCapLimit)
err := n.ExecEngine.Maintenance(trieCapLimitBytes)
if err != nil {
return err
Expand Down

0 comments on commit efa2661

Please sign in to comment.