PeerGroup: Start using VersionMessage.receivingAddr as it was originally intended.

This commit is contained in:
Andreas Schildbach
2018-03-02 16:31:23 +01:00
parent e34f5e9af5
commit ade58d2c19
2 changed files with 3 additions and 1 deletions

View File

@@ -1389,6 +1389,8 @@ public class PeerGroup implements TransactionBroadcaster {
VersionMessage ver = getVersionMessage().duplicate();
ver.bestHeight = chain == null ? 0 : chain.getBestChainHeight();
ver.time = Utils.currentTimeSeconds();
ver.receivingAddr = address;
ver.receivingAddr.setParent(ver);
Peer peer = createPeer(address, ver);
peer.addConnectedEventListener(Threading.SAME_THREAD, startupListener);

View File

@@ -67,7 +67,7 @@ public class VersionMessage extends Message {
*/
public long time;
/**
* The network address of the node receiving this message. Not used.
* The network address of the node receiving this message.
*/
public PeerAddress receivingAddr;
/**