Hi, I don't know if this library still maintained, but if chLen is smaller than c.prevPeers a deadlock can occur here due to a full buffered channel, no?
I suppose that the comparison in this line was intended to be the inverse logic: chLen < len(c.prevPeers), which fix the deadlock.
Hi, I don't know if this library still maintained, but if
chLen
is smaller thanc.prevPeers
a deadlock can occur here due to a full buffered channel, no?I suppose that the comparison in this line was intended to be the inverse logic:
chLen < len(c.prevPeers)
, which fix the deadlock.