Package nxt.peer
Class NetworkMessage.TransactionsInventoryMessage
java.lang.Object
nxt.peer.NetworkMessage
nxt.peer.NetworkMessage.TransactionsInventoryMessage
- Enclosing class:
- NetworkMessage
The TransactionsInventory message is sent when a peer has received new transactions.
The peer responds with a GetTransactions message if it wants to
receive the transactions.
TransactionsInventory messages also include the child transaction identifiers for
each of the ChildBlockTransactions in them.
- Transaction list
Each transaction list entry has the following format:
- Transaction identifier (ChainTransactionId)
-
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
ConstructorsConstructorDescriptionTransactionsInventoryMessage(List<? extends Transaction> transactions) Construct a TransactionsInventory message -
Method Summary
Modifier and TypeMethodDescriptionprotected NetworkMessageconstructMessage(ByteBuffer bytes) Construct the message from the message bytesGet the transaction identifiers
-
Constructor Details
-
TransactionsInventoryMessage
Construct a TransactionsInventory message- Parameters:
transactions- Transaction 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
-
getTransactionIds
Get the transaction identifiers- Returns:
- Identifier
-