From c3f0e7a5886b0c9b5e5347d7a3635ded410c9da8 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Fri, 12 Sep 2025 12:50:07 +0200 Subject: [PATCH] p2p/discover: continue --- p2p/discover/lookup.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/p2p/discover/lookup.go b/p2p/discover/lookup.go index efa8191ae0..ff2dc907cd 100644 --- a/p2p/discover/lookup.go +++ b/p2p/discover/lookup.go @@ -190,6 +190,8 @@ func (it *lookupIterator) Next() bool { // If the lookup is empty right after creation, it means the local table // is in a degraded state, and we need to wait for it to fill again. it.lookupFailed(it.lookup.tab) + it.lookup = nil + continue } // Yield the initial nodes from the iterator before advancing the lookup. it.buffer = it.lookup.replyBuffer