Class Pong

  • public class Pong
    extends Message

    See BIP31 for details.

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

    • Constructor Detail

      • Pong

        public Pong​(long nonce)
        Create a Pong with a nonce value. Only use this if the remote node has a protocol version greater than 60000
    • Method Detail

      • bitcoinSerializeToStream

        public void bitcoinSerializeToStream​( stream)
        Description copied from class: Message
        Serializes this message to the provided stream. If you just want the raw bytes use bitcoinSerialize().
        bitcoinSerializeToStream in class Message
      • getNonce

        public long getNonce()
        Returns the nonce sent by the remote peer.