public class GetBlocksMessage extends Message
GetDataMessage
.Message.LazyParseException
Modifier and Type | Field and Description |
---|---|
protected List<Sha256Hash> |
locator |
protected Sha256Hash |
stopHash |
protected long |
version |
bytes, checksum, cursor, length, MAX_SIZE, offset, params, parsed, parseLazy, parseRetain, protocolVersion, recached, UNKNOWN_LENGTH
Constructor and Description |
---|
GetBlocksMessage(NetworkParameters params,
byte[] msg) |
GetBlocksMessage(NetworkParameters params,
List<Sha256Hash> locator,
Sha256Hash stopHash) |
Modifier and Type | Method and Description |
---|---|
protected void |
bitcoinSerializeToStream(OutputStream stream)
Serializes this message to the provided stream.
|
boolean |
equals(Object o) |
List<Sha256Hash> |
getLocator() |
Sha256Hash |
getStopHash() |
int |
hashCode() |
void |
parse() |
protected void |
parseLite()
Perform the most minimal parse possible to calculate the length of the message.
|
String |
toString() |
adjustLength, bitcoinSerialize, bitcoinSerialize, ensureParsed, getHash, getMessageSize, getParams, isCached, isParsed, isRecached, maybeParse, unCache, unsafeBitcoinSerialize
protected long version
protected List<Sha256Hash> locator
protected Sha256Hash stopHash
public GetBlocksMessage(NetworkParameters params, List<Sha256Hash> locator, Sha256Hash stopHash)
public GetBlocksMessage(NetworkParameters params, byte[] msg) throws ProtocolException
ProtocolException
protected void parseLite() throws ProtocolException
Message
parseLite
in class Message
ProtocolException
public void parse() throws ProtocolException
ProtocolException
public List<Sha256Hash> getLocator()
public Sha256Hash getStopHash()
protected void bitcoinSerializeToStream(OutputStream stream) throws IOException
Message
IOException
Copyright © 2014. All rights reserved.