peer: only request cmpctblock if we received sendcmpct.
This commit is contained in:
parent
fae56d1387
commit
cc6ccfe9d9
@ -1407,8 +1407,10 @@ Peer.prototype.blockType = function blockType() {
|
|||||||
return invTypes.FILTERED_BLOCK;
|
return invTypes.FILTERED_BLOCK;
|
||||||
|
|
||||||
if (this.options.compact) {
|
if (this.options.compact) {
|
||||||
if (this.hasCompact())
|
if (this.hasCompact() && this.compactMode !== -1) {
|
||||||
return invTypes.CMPCT_BLOCK;
|
if (!this.options.hasWitness() || this.compactWitness)
|
||||||
|
return invTypes.CMPCT_BLOCK;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.hasWitness())
|
if (this.hasWitness())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user