bitpay / bitcore-p2p

Interface to the bitcoin P2P network for bitcore
MIT License
81 stars 275 forks source link

Make addr hash always include port #68

Closed pnagurny closed 9 years ago

pnagurny commented 9 years ago

We were having problems with nodes connecting to other nodes twice: once from the dnsSeed and once from the manually specified addrs array.

This fixes the issue because if the port was specified in one case, and not the other, the default port will be included in the hash each time, preventing duplicate connections.

maraoz commented 9 years ago

ACK