Skip to content

Commit

Permalink
fix: fix multi-db env
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjunLi committed Nov 18, 2024
1 parent 8143069 commit b5f1531
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eth/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,11 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) {
}

// startup ancient freeze
if err = chainDb.SetupFreezerEnv(&ethdb.FreezerEnv{
freezeDb := chainDb
if stack.CheckIfMultiDataBase() {
freezeDb = chainDb.BlockStore()
}
if err = freezeDb.SetupFreezerEnv(&ethdb.FreezerEnv{
ChainCfg: chainConfig,
BlobExtraReserve: config.BlobExtraReserve,
}); err != nil {
Expand Down

0 comments on commit b5f1531

Please sign in to comment.