fix: add return
@@ -245,10 +245,11 @@ func (rt *routingTableImpl) update(p node.Node) {
return
}
- // this is a new node.
if p.Address() == "" {
rt.log.Errorf("Updated non-existing peer without an address pubkey: %v", p.PublicKey().String())
+ return
}
+ // this is a new node.
// todo: consider connection metrics
if bucket.Len() >= rt.bucketsize { // bucket overflows
