mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
core/types/bal: reduce alloc
This commit is contained in:
parent
127d1f42bb
commit
47e8f1184c
1 changed files with 3 additions and 1 deletions
|
|
@ -152,7 +152,9 @@ func (b *ConstructionBlockAccessList) PrettyPrint() string {
|
|||
|
||||
// Copy returns a deep copy of the access list.
|
||||
func (b *ConstructionBlockAccessList) Copy() *ConstructionBlockAccessList {
|
||||
res := NewConstructionBlockAccessList()
|
||||
res := ConstructionBlockAccessList{
|
||||
Accounts: make(map[common.Address]*ConstructionAccountAccess, len(b.Accounts)),
|
||||
}
|
||||
for addr, aa := range b.Accounts {
|
||||
var aaCopy ConstructionAccountAccess
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue