Package org.bitcoinj.core
Class NotFoundMessage
- java.lang.Object
-
- org.bitcoinj.core.Message
-
- org.bitcoinj.core.ListMessage
-
- org.bitcoinj.core.InventoryMessage
-
- org.bitcoinj.core.NotFoundMessage
-
public class NotFoundMessage extends InventoryMessage
Sent by a peer when a getdata request doesn't find the requested data in the mempool. It has the same format as an inventory message and lists the hashes of the missing items.
Instances of this class are not safe for use by multiple threads.
-
-
Field Summary
Fields Modifier and Type Field Description static int
MIN_PROTOCOL_VERSION
-
Fields inherited from class org.bitcoinj.core.InventoryMessage
MAX_INV_SIZE
-
Fields inherited from class org.bitcoinj.core.ListMessage
items, MAX_INVENTORY_ITEMS
-
Fields inherited from class org.bitcoinj.core.Message
MAX_SIZE, params, payload, serializer
-
-
Constructor Summary
Constructors Constructor Description NotFoundMessage(NetworkParameters params)
NotFoundMessage(NetworkParameters params, java.nio.ByteBuffer payload)
NotFoundMessage(NetworkParameters params, java.util.List<InventoryItem> items)
-
Method Summary
-
Methods inherited from class org.bitcoinj.core.InventoryMessage
addBlock, addTransaction, with
-
Methods inherited from class org.bitcoinj.core.ListMessage
addItem, bitcoinSerializeToStream, equals, getItems, hashCode, parse, removeItem, toString
-
Methods inherited from class org.bitcoinj.core.Message
bitcoinSerialize, getHash, getMessageSize, getParams, readByte, readByteArray, readBytes, readHash, readInt32, readInt64, readStr, readUint32, readUint64, readVarInt, skipBytes, unCache, unsafeBitcoinSerialize
-
-
-
-
Constructor Detail
-
NotFoundMessage
public NotFoundMessage(NetworkParameters params)
-
NotFoundMessage
public NotFoundMessage(NetworkParameters params, java.nio.ByteBuffer payload) throws ProtocolException
- Throws:
ProtocolException
-
NotFoundMessage
public NotFoundMessage(NetworkParameters params, java.util.List<InventoryItem> items)
-
-