Skip to content

Commit

Permalink
Merge pull request #330 from OffchainLabs/expose_triedbconfig
Browse files Browse the repository at this point in the history
Exposes CacheConfig.triedbConfig
  • Loading branch information
joshuacolvin0 authored Jul 22, 2024
2 parents 18256c2 + dbf2a65 commit 334c337
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/blockchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,11 @@ type CacheConfig struct {
SnapshotWait bool // Wait for snapshot construction on startup. TODO(karalabe): This is a dirty hack for testing, nuke it
}

// arbitrum: exposing CacheConfig.triedbConfig to be used by Nitro when initializing arbos in database
func (c *CacheConfig) TriedbConfig() *triedb.Config {
return c.triedbConfig()
}

// triedbConfig derives the configures for trie database.
func (c *CacheConfig) triedbConfig() *triedb.Config {
config := &triedb.Config{Preimages: c.Preimages}
Expand Down

0 comments on commit 334c337

Please sign in to comment.