Open GoogleCodeExporter opened 9 years ago
Do you know where those bad PeerAddresses come from? I've never seen that
outside of your app, so I am assuming that when the trusted peer feature is in
use you don't check whether the name was resolved correctly?
Original comment by hearn@google.com
on 7 Mar 2013 at 10:04
Indeed, all I do in my PeerDiscovery is
peers.add(new InetSocketAddress(trustedPeerHost,
Constants.NETWORK_PARAMETERS.port));
I would expect this to be handled by bitcoinj, after all its not much different
to a bad IP.
Anyways, just looking at the class there are constructors that don't set .addr
and .services so we can't avoid they are null. Thus, toString(), equals() and
hashCode() should handle this case.
Original comment by andreas....@gmail.com
on 7 Mar 2013 at 10:13
[continuing from 338] ...still I think the null handling should be improved,
but its probably low prio.
Original comment by andreas....@gmail.com
on 7 Mar 2013 at 11:07
Original issue reported on code.google.com by
andreas....@gmail.com
on 6 Mar 2013 at 7:56