From 47e8f1184c9928e539ef75e0bc0b5d07018fbd3b Mon Sep 17 00:00:00 2001 From: cuiweixie Date: Mon, 12 Jan 2026 20:12:24 +0800 Subject: [PATCH] core/types/bal: reduce alloc --- core/types/bal/bal.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/types/bal/bal.go b/core/types/bal/bal.go index fca54f7681..9300be5bc8 100644 --- a/core/types/bal/bal.go +++ b/core/types/bal/bal.go @@ -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