From 2129b23fe7630e3cc23b22416ccd322f67333f47 Mon Sep 17 00:00:00 2001 From: Pascal Fischer Date: Wed, 29 Nov 2023 14:56:06 +0100 Subject: [PATCH] allow sync for and return empty map --- management/server/peer.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/management/server/peer.go b/management/server/peer.go index 38a583a1e..439756eb5 100644 --- a/management/server/peer.go +++ b/management/server/peer.go @@ -480,11 +480,6 @@ func (am *DefaultAccountManager) SyncPeer(sync PeerSync) (*nbpeer.Peer, *Network return nil, nil, status.Errorf(status.Unauthenticated, "peer is not registered") } - validatedPeers := additions.ValidatePeers([]*nbpeer.Peer{peer}) - if len(validatedPeers) == 0 { - return nil, nil, status.Errorf(status.PermissionDenied, "peer validation failed") - } - err = checkIfPeerOwnerIsBlocked(peer, account) if err != nil { return nil, nil, err