@@ -10,14 +10,8 @@ import (
1010 "time"
1111
1212 "github.com/ethereum/go-ethereum"
13- "github.com/ethereum/go-ethereum/arbitrum_types"
14- "github.com/ethereum/go-ethereum/eth"
15- "github.com/ethereum/go-ethereum/eth/tracers"
16- "github.com/ethereum/go-ethereum/log"
17- "github.com/ethereum/go-ethereum/metrics"
18- "github.com/ethereum/go-ethereum/trie"
19-
2013 "github.com/ethereum/go-ethereum/accounts"
14+ "github.com/ethereum/go-ethereum/arbitrum_types"
2115 "github.com/ethereum/go-ethereum/common"
2216 "github.com/ethereum/go-ethereum/consensus"
2317 "github.com/ethereum/go-ethereum/core"
@@ -27,12 +21,17 @@ import (
2721 "github.com/ethereum/go-ethereum/core/state/snapshot"
2822 "github.com/ethereum/go-ethereum/core/types"
2923 "github.com/ethereum/go-ethereum/core/vm"
24+ "github.com/ethereum/go-ethereum/eth"
3025 "github.com/ethereum/go-ethereum/eth/filters"
26+ "github.com/ethereum/go-ethereum/eth/tracers"
3127 "github.com/ethereum/go-ethereum/ethdb"
3228 "github.com/ethereum/go-ethereum/event"
3329 "github.com/ethereum/go-ethereum/internal/ethapi"
30+ "github.com/ethereum/go-ethereum/log"
31+ "github.com/ethereum/go-ethereum/metrics"
3432 "github.com/ethereum/go-ethereum/params"
3533 "github.com/ethereum/go-ethereum/rpc"
34+ "github.com/ethereum/go-ethereum/triedb"
3635)
3736
3837var (
@@ -494,7 +493,7 @@ func StateAndHeaderFromHeader(ctx context.Context, chainDb ethdb.Database, bc *c
494493 // note: triedb cleans cache is disabled in trie.HashDefaults
495494 // note: only states committed to diskdb can be found as we're creating new triedb
496495 // note: snapshots are not used here
497- ephemeral := state .NewDatabaseWithConfig (chainDb , trie .HashDefaults )
496+ ephemeral := state .NewDatabaseWithConfig (chainDb , triedb .HashDefaults )
498497 lastState , lastHeader , lastStateRelease , err := FindLastAvailableState (ctx , bc , stateFor (ephemeral , nil ), header , nil , maxRecreateStateDepth )
499498 if err != nil {
500499 return nil , nil , err
0 commit comments