Class: MerkleBlockPacket

net/packets~MerkleBlockPacket(blocknullable)

MerkleBlock Packet

Constructor

new MerkleBlockPacket(blocknullable)

Create a merkleblock packet.

Parameters:
Name Type Attributes Description
block MerkleBlock <nullable>
Properties:
Name Type Description
block MerkleBlock
Source:

Extends

  • Packet

Methods

(static) fromRaw(data, encnullable) → {MerkleBlockPacket}

Instantiate merkleblock packet from serialized data.

Parameters:
Name Type Attributes Description
data Buffer
enc String <nullable>
Source:
Returns:
Type
MerkleBlockPacket

(private) fromRaw(data)

Inject properties from serialized data.

Parameters:
Name Type Description
data Buffer
Source:

(private) fromReader(br)

Inject properties from buffer reader.

Parameters:
Name Type Description
br BufferReader
Source:

getSize() → {Number}

Get serialization size.

Source:
Returns:
Type
Number

toRaw() → {Buffer}

Serialize merkleblock packet.

Source:
Returns:
Type
Buffer

toWriter(bw)

Serialize merkleblock packet to writer.

Parameters:
Name Type Description
bw BufferWriter
Source: