This commit is contained in:
Christopher Jeffrey 2016-05-23 19:55:53 -07:00
parent 2fe481659c
commit 1c2e1b8000
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -210,7 +210,7 @@ Peer.prototype._init = function init() {
// Ask for headers-only.
if (self.options.headers) {
if (self.version && self.version.version > 70012)
if (self.version.version > 70012)
self.write(self.framer.sendHeaders());
}
@ -218,7 +218,7 @@ Peer.prototype._init = function init() {
// segwit3 nodes require this instead
// of service bits).
if (self.options.witness) {
if (self.version && self.version.version >= 70012)
if (self.version.version >= 70012)
self.write(self.framer.haveWitness());
}