peer: block type fix for compact blocks.
This commit is contained in:
parent
caf8043dcb
commit
2c0f8ce226
@ -1407,7 +1407,7 @@ Peer.prototype.blockType = function blockType() {
|
|||||||
if (this.options.spv)
|
if (this.options.spv)
|
||||||
return invTypes.FILTERED_BLOCK;
|
return invTypes.FILTERED_BLOCK;
|
||||||
|
|
||||||
if (this.options.compact && this.outbound) {
|
if (this.options.compact) {
|
||||||
if (this.hasCompact())
|
if (this.hasCompact())
|
||||||
return invTypes.CMPCT_BLOCK;
|
return invTypes.CMPCT_BLOCK;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user