Skip to content

Commit

Permalink
fix: fix response num
Browse files Browse the repository at this point in the history
  • Loading branch information
krish-nr committed May 15, 2024
1 parent 4138aeb commit 31f68a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/discover/v5_udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,6 @@ func (t *UDPv5) waitForNodes(c *callV5, distances []uint) ([]*enode.Node, error)
nodeTest, err := enode.New(t.validSchemes, record)
if err == nil {
t.log.Debug("ZXL nodes response", "index", i, "nodeId", nodeTest.ID(), "ip", nodeTest.IP().String(), "port", nodeTest.UDP())
continue
}

node, err := t.verifyResponseNode(c, record, distances, seen)
Expand Down Expand Up @@ -884,6 +883,7 @@ func (t *UDPv5) collectTableNodes(rip net.IP, distances []uint, limit int) []*en
}
nodes = append(nodes, n)
if len(nodes) >= limit {
log.Error("ZXL: exceeded the limit size", "current size", len(nodes), "limit", limit)
return nodes
}
}
Expand Down

0 comments on commit 31f68a8

Please sign in to comment.