HotShot icon indicating copy to clipboard operation
HotShot copied to clipboard

Nodes subscribe to `transactions` topic only when they need transactions

Open lukaszrzasik opened this issue 10 months ago • 6 comments

Closes #1992

This PR:

  • Creates three new methods in the ConnectedNetwork trait:
  • subscribe_transactions which subscribes to the new Transactions topic
  • unsubscribe_transactions which unsubscribes from the Transactions topic
  • publish_transaction which publishes a message to the Transactions topic
  • implements these three methods for networks: Libp2pNetwork, PushCdnNetwork and CombinedNetworks
  • subscribes the node to the topic when it is to become the leader in the next view
  • unsubscribes the node from the topic when the view has been updated and the node is not the leader in the next view

This PR does not:

Key places to review:

lukaszrzasik avatar Apr 22 '24 13:04 lukaszrzasik