From 5ffb920b6d18b53ea8403bf1945743f9fb481bff Mon Sep 17 00:00:00 2001 From: q Date: Sun, 25 Jan 2026 02:18:07 +0800 Subject: [PATCH] don't need to copy the while slice, it's ok to use the pointer directly --- core/txpool/legacypool/legacypool.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/txpool/legacypool/legacypool.go b/core/txpool/legacypool/legacypool.go index 1bfc6e60b2..15a264a0be 100644 --- a/core/txpool/legacypool/legacypool.go +++ b/core/txpool/legacypool/legacypool.go @@ -1639,7 +1639,7 @@ func (as *accountSet) flatten() []common.Address { // merge adds all addresses from the 'other' set into 'as'. func (as *accountSet) merge(other *accountSet) { - maps.Copy(as.accounts, other.accounts) + as.accounts = other.accounts as.cache = nil }