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