diff --git a/lib/net/peer.js b/lib/net/peer.js index 53e015b1..5b768743 100644 --- a/lib/net/peer.js +++ b/lib/net/peer.js @@ -1406,11 +1406,9 @@ Peer.prototype.blockType = function blockType() { if (this.options.spv) return invTypes.FILTERED_BLOCK; - if (this.options.compact) { - if (this.hasCompact() && this.compactMode !== -1) { - if (!this.options.hasWitness() || this.compactWitness) - return invTypes.CMPCT_BLOCK; - } + if (this.options.compact && this.compactMode !== -1) { + if (!this.options.hasWitness() || this.compactWitness) + return invTypes.CMPCT_BLOCK; } if (this.hasWitness())