net: send peer addr in version msg.

This commit is contained in:
Christopher Jeffrey 2017-01-13 16:45:01 -08:00
parent 0f4348af6d
commit 699e71d84a
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -892,6 +892,7 @@ Peer.prototype.sendVersion = function sendVersion() {
packet.version = this.pool.protoVersion;
packet.services = this.pool.address.services;
packet.ts = this.network.now();
packet.recv = this.address;
packet.from = this.pool.address;
packet.nonce = this.pool.localNonce;
packet.agent = this.pool.userAgent;