Package nxt.peer
Class NetworkMessage.MilestoneBlockIdsMessage
java.lang.Object
nxt.peer.NetworkMessage
nxt.peer.NetworkMessage.MilestoneBlockIdsMessage
- Enclosing class:
- NetworkMessage
The MilestoneBlockIds message is returned in response to the GetMilestoneBlockIds message.
The message identifier is obtained from the GetMilestoneBlockIds message.
- Message identifier (long)
- Last block indicator (boolean)
- Block identifier list (long)
-
Nested Class Summary
Nested classes/interfaces inherited from class nxt.peer.NetworkMessage
NetworkMessage.AddPeersMessage, NetworkMessage.BlockchainStateMessage, NetworkMessage.BlockIdsMessage, NetworkMessage.BlockInventoryMessage, NetworkMessage.BlocksMessage, NetworkMessage.BundlerRateMessage, NetworkMessage.CumulativeDifficultyMessage, NetworkMessage.ErrorMessage, NetworkMessage.GetBlockMessage, NetworkMessage.GetCumulativeDifficultyMessage, NetworkMessage.GetInfoMessage, NetworkMessage.GetMilestoneBlockIdsMessage, NetworkMessage.GetNextBlockIdsMessage, NetworkMessage.GetNextBlocksMessage, NetworkMessage.GetPeersMessage, NetworkMessage.GetTransactionsMessage, NetworkMessage.GetUnconfirmedTransactionsMessage, NetworkMessage.MilestoneBlockIdsMessage, NetworkMessage.TransactionsInventoryMessage, NetworkMessage.TransactionsMessage -
Field Summary
Fields inherited from class nxt.peer.NetworkMessage
MAX_ARRAY_LENGTH, MAX_LIST_SIZE, MAX_LIST_SIZE_PRE_2_3_3, messageId -
Constructor Summary
ConstructorsConstructorDescriptionMilestoneBlockIdsMessage(long messageId, boolean isLastBlock, List<Long> blockIds) Construct a MilestoneBlockIds message -
Method Summary
Modifier and TypeMethodDescriptionprotected NetworkMessageconstructMessage(ByteBuffer bytes) Construct the message from the message bytesGet the milestone block identifiersbooleanGet the last block indicator
-
Constructor Details
-
MilestoneBlockIdsMessage
Construct a MilestoneBlockIds message- Parameters:
messageId- Message identifierisLastBlock- Last block indicatorblockIds- Block identifier list
-
-
Method Details
-
constructMessage
protected NetworkMessage constructMessage(ByteBuffer bytes) throws BufferOverflowException, BufferUnderflowException, nxt.peer.NetworkException Construct the message from the message bytes- Overrides:
constructMessagein classNetworkMessage- Parameters:
bytes- Message bytes following the message name- Returns:
- Message
- Throws:
BufferOverflowException- Message buffer is too smallBufferUnderflowException- Message is too shortnxt.peer.NetworkException- Message is not valid
-
isLastBlock
public boolean isLastBlock()Get the last block indicator- Returns:
- Last block indicator
-
getBlockIds
Get the milestone block identifiers- Returns:
- Milestone block identifiers
-