core: copy genesis before modifying

pull/31097/head
Marius van der Wijden 16 hours 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
}
// Copy copies the genesis.
// copy copies the genesis.
func (g *Genesis) copy() *Genesis {
if g != nil {
cpy := *g

Loading…
Cancel
Save