iotaledger / iri

IOTA Reference Implementation
Other
1.15k stars 370 forks source link

Add transaction request and broadcast message protocol #1794

Open kwek20 opened 4 years ago

kwek20 commented 4 years ago

Description

Requesting and broadcasting specific transactions between neighbors

Motivation

Splitting up the gossip will decrease network traffic

Requirements

  1. Add 2 new message types named TX_REQUEST and TX_BROADCAST in ProtocolMessage
  2. Update MessageReader to read this message
  3. Update NeighborImpl to handle the message
  4. Add createTransactionXYZPacket in Protocol

According to the following details: https://github.com/iotaledger/protocol-rfcs/blob/d16a3815271cdb4b53ff3c234ea706bf764e1847/text/0001-protocol-messages/0001-protocol-messages.md#transaction-broadcast