Skip to content

Commit bb038c6

Browse files
committed
fix failing tests
1 parent 9d2db92 commit bb038c6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

core/genesis.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ func (g *Genesis) chainConfigOrDefault(ghash common.Hash, stored *params.ChainCo
470470
// IsVerkle indicates whether the state is already stored in a verkle
471471
// tree at genesis time.
472472
func (g *Genesis) IsVerkle() bool {
473-
return g.Config.VerkleTime != nil && *g.Config.VerkleTime == g.Timestamp
473+
return g != nil && g.Config != nil && g.Config.VerkleTime != nil && *g.Config.VerkleTime == g.Timestamp
474474
}
475475

476476
// ToBlock returns the genesis block according to genesis specification.

core/state/statedb.go

-1
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,6 @@ func (s *StateDB) commitAndFlush(block uint64, deleteEmptyObjects bool, noStorag
12751275
return nil, err
12761276
}
12771277
}
1278-
s.db.SaveTransitionState(ret.root, &TransitionState{Ended: true})
12791278
if !ret.empty() {
12801279
// If snapshotting is enabled, update the snapshot tree with this new version
12811280
if snap := s.db.Snapshot(); snap != nil && snap.Snapshot(ret.originRoot) != nil {

0 commit comments

Comments
 (0)