peer: send havewitness only for segnet3.

This commit is contained in:
Christopher Jeffrey 2016-07-25 14:22:08 -07:00
parent bc7b6f487b
commit e3389ac28b
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -307,7 +307,7 @@ Peer.prototype._onAck = function _onAck(err) {
// Let them know we support segwit (old
// segwit3 nodes require this instead
// of service bits).
if (this.pool.options.witness) {
if (this.network.oldWitness) {
if (this.version.version >= 70012)
this.write(this.framer.haveWitness());
}