core: copy genesis before modifying

pull/31097/head
Marius van der Wijden 1 week ago
parent 16b6c4c4e2
commit bae8a52e8f
  1. 2
      core/genesis.go

@ -551,7 +551,7 @@ func (g *Genesis) MustCommit(db ethdb.Database, triedb *triedb.Database) *types.
return block return block
} }
// Copy copies the genesis. // copy copies the genesis.
func (g *Genesis) copy() *Genesis { func (g *Genesis) copy() *Genesis {
if g != nil { if g != nil {
cpy := *g cpy := *g

Loading…
Cancel
Save