From 3d0254054c337432ada4b5289b30b97a7ce71a0e Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sun, 29 Jan 2017 16:49:09 -0800 Subject: [PATCH] peer: remove useless call. --- lib/net/peer.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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())