peer: block type fix for compact blocks.

This commit is contained in:
Christopher Jeffrey 2017-01-23 21:23:01 -08:00
parent caf8043dcb
commit 2c0f8ce226
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1407,7 +1407,7 @@ Peer.prototype.blockType = function blockType() {
if (this.options.spv)
return invTypes.FILTERED_BLOCK;
if (this.options.compact && this.outbound) {
if (this.options.compact) {
if (this.hasCompact())
return invTypes.CMPCT_BLOCK;
}