mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-28 07:36:44 +00:00
fix double-allocation
This commit is contained in:
parent
6b8d216578
commit
b80aa1efb8
1 changed files with 0 additions and 1 deletions
|
|
@ -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{}{}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue