core: copy genesis before modifying

This commit is contained in:
Marius van der Wijden 2025-01-30 16:58:01 +01:00
parent 16b6c4c4e2
commit bae8a52e8f

View file

@ -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