src/net/packets.js
function CmpctBlockPacket(block, witness) {
  if (!(this instanceof CmpctBlockPacket))
    return new CmpctBlockPacket(block, witness);

  Packet.call(this);

  this.block = block || new bip152.CompactBlock();
  this.witness = witness || false;
}
function CmpctBlockPacket(block, witness) {
  if (!(this instanceof CmpctBlockPacket))
    return new CmpctBlockPacket(block, witness);

  Packet.call(this);

  this.block = block || new bip152.CompactBlock();
  this.witness = witness || false;
}
function CmpctBlockPacket ( block , witness ) { if ( ! ( this instanceof CmpctBlockPacket ) ) return new CmpctBlockPacket ( block , witness ) ; Packet . call ( this ) ; this . block = block || new bip152 . CompactBlock ( ) ; this . witness = witness || false ; }
Represents a `cmpctblock` packet.
@constructor
@param {Block|null} block
@param {Boolean|null} witness
@property {Block} block
@property {Boolean} witness
Represents a cmpctblock packet .