From b80aa1efb8c02bf262d5cc20c2d02848da6ef319 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Fri, 24 Nov 2023 12:35:20 +0330 Subject: [PATCH] fix double-allocation --- core/state/statedb.go | 1 - 1 file changed, 1 deletion(-) diff --git a/core/state/statedb.go b/core/state/statedb.go index 112f104783..7460a0f670 100644 --- a/core/state/statedb.go +++ b/core/state/statedb.go @@ -1382,7 +1382,6 @@ func (s *StateDB) Prepare(rules params.Rules, sender, coinbase common.Address, d // PrepareBlock prepares the statedb for execution of a block. It tracks // the addresses of enabled precompiles for debugging purposes. func (s *StateDB) PrepareBlock(precompiles []common.Address) { - s.precompiles = make(map[common.Address]struct{}) for _, addr := range precompiles { s.precompiles[addr] = struct{}{} }