In preparation of IPv6 support: prevent double connections to the same node.
Not urgent.
In preparation of IPv6 support: prevent double connections to the same node.
Not urgent.
ACK
Does this break connecting to multiple nodes on different ports? eg, multiple local bitcoinds
All nodes have a self-generated unique 64-bit identifier. This patch will prevent two connections to a partner with the same identifier.
Running two nodes on one system and connecting to both should not be a problem.
Per https://en.bitcoin.it/wiki/Protocol_specification#version the nonce is unique for every version message, so this would imply a protocol change making it static per client...
Nice catch; that makes this problem somewhat harder to solve. Closing for now...