Class NotFoundMessage

  • All Implemented Interfaces:
    Message

    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 -- that use deprecated methods -- are not safe for use by multiple threads.

    • Field Detail

      • MIN_PROTOCOL_VERSION

        public static int MIN_PROTOCOL_VERSION
    • Constructor Detail

      • NotFoundMessage

        @Deprecated
        public NotFoundMessage()
        Deprecated.
      • NotFoundMessage

        public NotFoundMessage​(java.util.List<InventoryItem> items)
    • Method Detail

      • read

        public static NotFoundMessage read​(java.nio.ByteBuffer payload)
                                    throws java.nio.BufferUnderflowException,
                                           ProtocolException
        Deserialize this message from a given payload.
        Parameters:
        payload - payload to deserialize from
        Returns:
        read message
        Throws:
        java.nio.BufferUnderflowException - if the read message extends beyond the remaining bytes of the payload
        ProtocolException