Package org.bitcoinj.core
Class SendHeadersMessage
- java.lang.Object
-
- org.bitcoinj.core.Message
-
- org.bitcoinj.core.EmptyMessage
-
- org.bitcoinj.core.SendHeadersMessage
-
public class SendHeadersMessage extends EmptyMessage
A new message, "sendheaders", which indicates that a node prefers to receive new block announcements via a "headers" message rather than an "inv".
See BIP 130.
-
-
Field Summary
-
Fields inherited from class org.bitcoinj.core.Message
cursor, length, MAX_SIZE, offset, params, payload, recached, serializer, UNKNOWN_LENGTH
-
-
Constructor Summary
Constructors Constructor Description SendHeadersMessage()
SendHeadersMessage(NetworkParameters params, byte[] payload)
-
Method Summary
-
Methods inherited from class org.bitcoinj.core.EmptyMessage
bitcoinSerialize, bitcoinSerializeToStream, parse
-
Methods inherited from class org.bitcoinj.core.Message
adjustLength, bitcoinSerialize, getHash, getMessageSize, getParams, hasMoreBytes, isCached, isRecached, readByte, readByteArray, readBytes, readHash, readInt64, readStr, readUint32, readUint64, readVarInt, readVarInt, setSerializer, unCache, unsafeBitcoinSerialize
-
-
-
-
Constructor Detail
-
SendHeadersMessage
public SendHeadersMessage()
-
SendHeadersMessage
public SendHeadersMessage(NetworkParameters params, byte[] payload)
-
-