public class HeadersMessage extends Message
Message.LazyParseException
Modifier and Type | Field and Description |
---|---|
static int |
MAX_HEADERS |
bytes, checksum, cursor, length, MAX_SIZE, offset, params, parsed, parseLazy, parseRetain, protocolVersion, recached, UNKNOWN_LENGTH
Constructor and Description |
---|
HeadersMessage(NetworkParameters params,
Block... headers) |
HeadersMessage(NetworkParameters params,
byte[] payload) |
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.
|
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 void bitcoinSerializeToStream(OutputStream stream) throws IOException
Message
IOException
protected void parseLite() throws ProtocolException
Message
parseLite
in class Message
ProtocolException
Copyright © 2014. All rights reserved.