From fd8cdb96714b75c90f26a428cb96ed1e68204b63 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Wed, 27 Mar 2024 10:18:40 +0300 Subject: [PATCH] [#1057] netmap: Do not iterate over external addresses in Node Signed-off-by: Evgenii Stratonikov --- pkg/core/netmap/nodes.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkg/core/netmap/nodes.go b/pkg/core/netmap/nodes.go index 17fccc62..b0c9e1f9 100644 --- a/pkg/core/netmap/nodes.go +++ b/pkg/core/netmap/nodes.go @@ -18,11 +18,6 @@ func (x Node) PublicKey() []byte { // and passes them into f. Handler MUST NOT be nil. func (x Node) IterateAddresses(f func(string) bool) { (netmap.NodeInfo)(x).IterateNetworkEndpoints(f) - for _, addr := range (netmap.NodeInfo)(x).ExternalAddresses() { - if f(addr) { - return - } - } } // NumberOfAddresses returns number of announced network addresses.