@@ -10,14 +10,8 @@ import (
10
10
"time"
11
11
12
12
"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
-
20
13
"github.com/ethereum/go-ethereum/accounts"
14
+ "github.com/ethereum/go-ethereum/arbitrum_types"
21
15
"github.com/ethereum/go-ethereum/common"
22
16
"github.com/ethereum/go-ethereum/consensus"
23
17
"github.com/ethereum/go-ethereum/core"
@@ -27,12 +21,17 @@ import (
27
21
"github.com/ethereum/go-ethereum/core/state/snapshot"
28
22
"github.com/ethereum/go-ethereum/core/types"
29
23
"github.com/ethereum/go-ethereum/core/vm"
24
+ "github.com/ethereum/go-ethereum/eth"
30
25
"github.com/ethereum/go-ethereum/eth/filters"
26
+ "github.com/ethereum/go-ethereum/eth/tracers"
31
27
"github.com/ethereum/go-ethereum/ethdb"
32
28
"github.com/ethereum/go-ethereum/event"
33
29
"github.com/ethereum/go-ethereum/internal/ethapi"
30
+ "github.com/ethereum/go-ethereum/log"
31
+ "github.com/ethereum/go-ethereum/metrics"
34
32
"github.com/ethereum/go-ethereum/params"
35
33
"github.com/ethereum/go-ethereum/rpc"
34
+ "github.com/ethereum/go-ethereum/triedb"
36
35
)
37
36
38
37
var (
@@ -494,7 +493,7 @@ func StateAndHeaderFromHeader(ctx context.Context, chainDb ethdb.Database, bc *c
494
493
// note: triedb cleans cache is disabled in trie.HashDefaults
495
494
// note: only states committed to diskdb can be found as we're creating new triedb
496
495
// note: snapshots are not used here
497
- ephemeral := state .NewDatabaseWithConfig (chainDb , trie .HashDefaults )
496
+ ephemeral := state .NewDatabaseWithConfig (chainDb , triedb .HashDefaults )
498
497
lastState , lastHeader , lastStateRelease , err := FindLastAvailableState (ctx , bc , stateFor (ephemeral , nil ), header , nil , maxRecreateStateDepth )
499
498
if err != nil {
500
499
return nil , nil , err
0 commit comments