Skip to content

Commit 334c337

Browse files
Merge pull request #330 from OffchainLabs/expose_triedbconfig
Exposes CacheConfig.triedbConfig
2 parents 18256c2 + dbf2a65 commit 334c337

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/blockchain.go

+5
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,11 @@ type CacheConfig struct {
158158
SnapshotWait bool // Wait for snapshot construction on startup. TODO(karalabe): This is a dirty hack for testing, nuke it
159159
}
160160

161+
// arbitrum: exposing CacheConfig.triedbConfig to be used by Nitro when initializing arbos in database
162+
func (c *CacheConfig) TriedbConfig() *triedb.Config {
163+
return c.triedbConfig()
164+
}
165+
161166
// triedbConfig derives the configures for trie database.
162167
func (c *CacheConfig) triedbConfig() *triedb.Config {
163168
config := &triedb.Config{Preimages: c.Preimages}

0 commit comments

Comments
 (0)