Class: CmpctBlockPacket

net/packets~CmpctBlockPacket(block)

CmpctBlock Packet

Constructor

new CmpctBlockPacket(block)

Create a cmpctblock packet.

Parameters:
Name Type Description
block Block | null
Properties:
Name Type Description
block Block
Source:

Extends

  • Packet

Members

block :Block|bip152.CompactBlock

Type:
  • Block | bip152.CompactBlock
Source:

Methods

getSize() → {Number}

Serialize cmpctblock packet.

Source:
Returns:
Type
Number

read(br)

Inject properties from buffer reader.

Parameters:
Name Type Description
br bio.BufferReader
Source:

write(bw)

Serialize cmpctblock packet to writer.

Parameters:
Name Type Description
bw BufioWriter
Source: