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,7 +613,10 @@ func DeveloperGenesisBlock(gasLimit uint64, faucet common.Address, genesisAlloc
|
||||||
|
|
||||||
if genesisAlloc != nil {
|
if genesisAlloc != nil {
|
||||||
for addr, account := range *genesisAlloc {
|
for addr, account := range *genesisAlloc {
|
||||||
alloc[addr] = account
|
// Don't overwrite the precompiled accounts
|
||||||
|
if _, ok := alloc[addr]; !ok {
|
||||||
|
alloc[addr] = account
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue