From b5f15312e41262df90a1eb2c09a6d743f151344d Mon Sep 17 00:00:00 2001 From: Chris Li <271678682li@gmail.com> Date: Mon, 18 Nov 2024 10:50:23 +0800 Subject: [PATCH] fix: fix multi-db env --- eth/backend.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/eth/backend.go b/eth/backend.go index 14053f1450..556af40b4a 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -210,7 +210,11 @@ func New(stack *node.Node, config *ethconfig.Config) (*Ethereum, error) { } // startup ancient freeze - if err = chainDb.SetupFreezerEnv(ðdb.FreezerEnv{ + freezeDb := chainDb + if stack.CheckIfMultiDataBase() { + freezeDb = chainDb.BlockStore() + } + if err = freezeDb.SetupFreezerEnv(ðdb.FreezerEnv{ ChainCfg: chainConfig, BlobExtraReserve: config.BlobExtraReserve, }); err != nil {