public class HeadersMessage extends Message
Message.LazyParseException
Modifier and Type | Field and Description |
---|---|
static int |
MAX_HEADERS |
checksum, cursor, length, MAX_SIZE, offset, params, parsed, parseLazy, parseRetain, payload, protocolVersion, recached, UNKNOWN_LENGTH
Constructor and Description |
---|
HeadersMessage(NetworkParameters params,
Block... headers) |
HeadersMessage(NetworkParameters params,
byte[] payload) |
HeadersMessage(NetworkParameters params,
List<Block> headers) |
Modifier and Type | Method and Description |
---|---|
void |
bitcoinSerializeToStream(OutputStream stream)
Serializes this message to the provided stream.
|
List<Block> |
getBlockHeaders() |
protected void |
parseLite()
Perform the most minimal parse possible to calculate the length of the message payload.
|
adjustLength, bitcoinSerialize, bitcoinSerialize, ensureParsed, getHash, getMessageSize, getParams, isCached, isParsed, isRecached, maybeParse, unCache, unsafeBitcoinSerialize
public static final int MAX_HEADERS
public HeadersMessage(NetworkParameters params, byte[] payload) throws ProtocolException
ProtocolException
public HeadersMessage(NetworkParameters params, Block... headers) throws ProtocolException
ProtocolException
public HeadersMessage(NetworkParameters params, List<Block> headers) throws ProtocolException
ProtocolException
public void bitcoinSerializeToStream(OutputStream stream) throws IOException
Message
IOException
protected void parseLite() throws ProtocolException
Message
parseLite
in class Message
ProtocolException
Copyright © 2016. All rights reserved.