Class InventoryMessage

  • Direct Known Subclasses:

    public class InventoryMessage
    extends ListMessage

    Represents the "inv" P2P network message. An inv contains a list of hashes of either blocks or transactions. It's a bandwidth optimization - on receiving some data, a (fully validating) peer sends every connected peer an inv containing the hash of what it saw. It'll only transmit the full thing if a peer asks for it with a GetDataMessage.

    Instances of this class are not safe for use by multiple threads.