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
MAX_SIZE, params, payload, serializer
-
-
Constructor Summary
Constructors Constructor Description SendHeadersMessage()
SendHeadersMessage(NetworkParameters params, java.nio.ByteBuffer payload)
-
Method Summary
-
Methods inherited from class org.bitcoinj.core.EmptyMessage
bitcoinSerializeToStream, getMessageSize, parse
-
Methods inherited from class org.bitcoinj.core.Message
bitcoinSerialize, getHash, getParams, readByte, readByteArray, readBytes, readHash, readInt32, readInt64, readStr, readUint32, readUint64, readVarInt, skipBytes, unCache, unsafeBitcoinSerialize
-
-
-
-
Constructor Detail
-
SendHeadersMessage
public SendHeadersMessage()
-
SendHeadersMessage
public SendHeadersMessage(NetworkParameters params, java.nio.ByteBuffer payload)
-
-