From 3851618e34fe69424831d2673d72c03a3ff97060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Levente=20T=C3=B3th?= Date: Thu, 6 Jun 2024 07:01:05 +0200 Subject: [PATCH] feat: use neighborhoodsuggester only if nonce does not exist --- pkg/node/node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/node/node.go b/pkg/node/node.go index 0db86b82358..13ee67a8407 100644 --- a/pkg/node/node.go +++ b/pkg/node/node.go @@ -279,7 +279,7 @@ func NewBee( } targetNeighborhood := o.TargetNeighborhood - if targetNeighborhood == "" && o.NeighborhoodSuggester != "" { + if targetNeighborhood == "" && !nonceExists && o.NeighborhoodSuggester != "" { logger.Info("fetching target neighborhood from suggester", "url", o.NeighborhoodSuggester) targetNeighborhood, err = nbhdutil.FetchNeighborhood(&http.Client{}, o.NeighborhoodSuggester) if err != nil {