From 39206842f2f180b2d69b6ae84ba7c26a58d50079 Mon Sep 17 00:00:00 2001 From: jsvisa Date: Mon, 11 Sep 2023 18:02:49 +0800 Subject: [PATCH] core: don't overwrite the precompiled account Signed-off-by: jsvisa --- core/genesis.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/genesis.go b/core/genesis.go index 8360b46896..5e8845691a 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -613,7 +613,10 @@ func DeveloperGenesisBlock(gasLimit uint64, faucet common.Address, genesisAlloc if genesisAlloc != nil { for addr, account := range *genesisAlloc { - alloc[addr] = account + // Don't overwrite the precompiled accounts + if _, ok := alloc[addr]; !ok { + alloc[addr] = account + } } }