mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
core: don't overwrite the precompiled account
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
d64f42d452
commit
39206842f2
1 changed files with 4 additions and 1 deletions
|
|
@ -613,9 +613,12 @@ func DeveloperGenesisBlock(gasLimit uint64, faucet common.Address, genesisAlloc
|
||||||
|
|
||||||
if genesisAlloc != nil {
|
if genesisAlloc != nil {
|
||||||
for addr, account := range *genesisAlloc {
|
for addr, account := range *genesisAlloc {
|
||||||
|
// Don't overwrite the precompiled accounts
|
||||||
|
if _, ok := alloc[addr]; !ok {
|
||||||
alloc[addr] = account
|
alloc[addr] = account
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Assemble and return the genesis with the precompiles and faucet pre-funded
|
// Assemble and return the genesis with the precompiles and faucet pre-funded
|
||||||
return &Genesis{
|
return &Genesis{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue