peer: remove useless call.

This commit is contained in:
Christopher Jeffrey 2017-01-29 16:49:09 -08:00
parent cc6ccfe9d9
commit 3d0254054c
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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())