mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
core: copy genesis before modifying
This commit is contained in:
parent
16b6c4c4e2
commit
bae8a52e8f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue