public class RejectMessage extends Message
| Modifier and Type | Class and Description |
|---|---|
static class |
RejectMessage.RejectCode |
Message.LazyParseExceptionchecksum, cursor, length, MAX_SIZE, offset, params, parsed, parseLazy, parseRetain, payload, protocolVersion, recached, UNKNOWN_LENGTH| Constructor and Description |
|---|
RejectMessage(NetworkParameters params,
byte[] payload) |
RejectMessage(NetworkParameters params,
byte[] payload,
boolean parseLazy,
boolean parseRetain,
int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
bitcoinSerializeToStream(OutputStream stream)
Serializes this message to the provided stream.
|
boolean |
equals(Object o) |
RejectMessage.RejectCode |
getReasonCode()
The reason code given for why the peer rejected the message.
|
String |
getReasonString()
The reason message given for rejection.
|
String |
getRejectedMessage()
Provides the type of message which was rejected by the peer.
|
Sha256Hash |
getRejectedObjectHash()
Provides the hash of the rejected object (if getRejectedMessage() is either "tx" or "block"), otherwise null.
|
int |
hashCode() |
void |
parse() |
protected void |
parseLite()
Perform the most minimal parse possible to calculate the length of the message payload.
|
String |
toString() |
adjustLength, bitcoinSerialize, bitcoinSerialize, ensureParsed, getHash, getMessageSize, getParams, isCached, isParsed, isRecached, maybeParse, unCache, unsafeBitcoinSerializepublic RejectMessage(NetworkParameters params, byte[] payload) throws ProtocolException
ProtocolExceptionpublic RejectMessage(NetworkParameters params, byte[] payload, boolean parseLazy, boolean parseRetain, int length) throws ProtocolException
ProtocolExceptionprotected void parseLite()
throws ProtocolException
MessageparseLite in class MessageProtocolExceptionpublic void parse()
throws ProtocolException
ProtocolExceptionpublic void bitcoinSerializeToStream(OutputStream stream) throws IOException
MessageIOExceptionpublic String getRejectedMessage()
public Sha256Hash getRejectedObjectHash()
public RejectMessage.RejectCode getReasonCode()
public String getReasonString()
Copyright © 2014. All rights reserved.