malcolm handley - 2005-01-25

Logged In: YES
user_id=655047

Interesting. The code is certainly broken because it does not cover the
case where we do not find any nodes.

The only case that I can think of that would cause this (and I guess that
we only need one) is where we become unable to communicate with the
bootstrap node after bootstrapping (loss of connectivity, the node went
down, etc) and have no other nodes in our routing table.

To fix this we should detect the case where findNearestNodes returns an
empty list and either fall back to using the dns or raise an error
immediately.