Class: GetHeadersPacket

net/packets~GetHeadersPacket(locator, stopnullable)

GetHeader Packets

Constructor

new GetHeadersPacket(locator, stopnullable)

Create a getheaders packet.

Parameters:
Name Type Attributes Description
locator Array.<Hash>
stop Hash <nullable>
Source:

Extends

  • GetBlocksPacket

Methods

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

Instantiate getheaders packet from serialized data.

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

(static) fromReader(br) → {GetHeadersPacket}

Instantiate getheaders packet from buffer reader.

Parameters:
Name Type Description
br BufferReader
Source:
Returns:
Type
GetHeadersPacket