Package nxt.peer

Class NetworkMessage.GetBlockMessage

java.lang.Object
nxt.peer.NetworkMessage
nxt.peer.NetworkMessage.GetBlockMessage
Enclosing class:
NetworkMessage

public static class NetworkMessage.GetBlockMessage extends NetworkMessage
The GetBlock message is sent when a peer is notified that a new block is available. The Blocks message is returned in response. The sender can include a list of transactions to be excluded when creating the Blocks message. The sender must then supply the excluded transactions when it receives the Blocks message.
  • Message identifier (long)
  • Block identifier (long)
  • Transaction exclusion BitSet (byte[])
  • Constructor Details

    • GetBlockMessage

      public GetBlockMessage(long blockId)
      Construct a GetBlocks message
      Parameters:
      blockId - Block identifier
    • GetBlockMessage

      public GetBlockMessage(long blockId, BitSet excludedTransactions)
      Construct a GetBlock message Transactions can be excluded
      Parameters:
      blockId - Block identifier
      excludedTransactions - Excluded transactions or null
  • Method Details