public class Pong extends Message
Message.LazyParseException
Modifier and Type | Field and Description |
---|---|
static int |
MIN_PROTOCOL_VERSION
The smallest protocol version that supports the pong response (BIP 31).
|
bytes, checksum, cursor, length, MAX_SIZE, offset, params, parsed, parseLazy, parseRetain, protocolVersion, recached, UNKNOWN_LENGTH
Constructor and Description |
---|
Pong(long nonce)
Create a Pong with a nonce value.
|
Pong(NetworkParameters params,
byte[] payloadBytes) |
Modifier and Type | Method and Description |
---|---|
void |
bitcoinSerializeToStream(OutputStream stream)
Serializes this message to the provided stream.
|
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 MIN_PROTOCOL_VERSION
public Pong(NetworkParameters params, byte[] payloadBytes) throws ProtocolException
ProtocolException
public Pong(long nonce)
public void bitcoinSerializeToStream(OutputStream stream) throws IOException
Message
IOException
protected void parseLite()
Message
Copyright © 2014. All rights reserved.