diff --git a/pkg/node/peer.go b/pkg/node/peer.go index 3254fe2..3331f2c 100644 --- a/pkg/node/peer.go +++ b/pkg/node/peer.go @@ -185,7 +185,7 @@ func (r *PeerRegistry) RevokePublicKey(publicKey string) { logging.Debug("public key removed from allowlist", logging.Fields{"key": safeKeyPrefix(publicKey)}) } -// IsPublicKeyAllowed checks if a public key is in the allowlist. +// if registry.IsPublicKeyAllowed(peer.PublicKey) { /* permit */ } func (r *PeerRegistry) IsPublicKeyAllowed(publicKey string) bool { r.allowedPublicKeyMutex.RLock() defer r.allowedPublicKeyMutex.RUnlock()