Class GetDataMessage


  • public class GetDataMessage
    extends ListMessage

    Represents the "getdata" P2P network message, which requests the contents of blocks or transactions given their hashes.

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

    • Method Detail

      • addTransaction

        public void addTransaction​(Sha256Hash hash,
                                   boolean includeWitness)
      • addBlock

        public void addBlock​(Sha256Hash hash,
                             boolean includeWitness)
      • addFilteredBlock

        public void addFilteredBlock​(Sha256Hash hash)
      • getHashOf

        public Sha256Hash getHashOf​(int i)