mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-30 19:41:24 +00:00
PeerGroup: Start using VersionMessage.receivingAddr as it was originally intended.
This commit is contained in:
@@ -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);
|
||||
|
@@ -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;
|
||||
/**
|
||||
|
Reference in New Issue
Block a user