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, unsafeBitcoinSerializepublic static final int MAX_HEADERS
public HeadersMessage(NetworkParameters params, byte[] payload) throws ProtocolException
ProtocolExceptionpublic HeadersMessage(NetworkParameters params, Block... headers) throws ProtocolException
ProtocolExceptionpublic HeadersMessage(NetworkParameters params, List<Block> headers) throws ProtocolException
ProtocolExceptionpublic void bitcoinSerializeToStream(OutputStream stream) throws IOException
MessageIOExceptionprotected void parseLite()
throws ProtocolException
MessageparseLite in class MessageProtocolExceptionCopyright © 2015. All rights reserved.