Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement MessageBroadcastService (Messaging) #197

Closed
CjS77 opened this issue Mar 26, 2019 · 0 comments
Closed

implement MessageBroadcastService (Messaging) #197

CjS77 opened this issue Mar 26, 2019 · 0 comments
Assignees

Comments

@CjS77
Copy link
Collaborator

CjS77 commented Mar 26, 2019

MessageBroadcastService is responsible for sharing messages from the core node logic handlers to the rest of the network.

MessageBroadcastService has a 1:1 association with ConnectionManager through which it can send the messages.

The actual sending of messages can be requested via the public send_message method which takes a Message and BroadcastStrategy instance as parameters.

send_message then selects an appropriate set of peer(s) from the ConnectionManager according to the BroadcastStrategy and sends the message to each of the selected peers.

BroadcastStrategy determines how a set of peer nodes will be selected an can be one of

  • Flood (all peers)
  • DHT (closest peers)
  • Random
    etc

Child of #183

@CjS77 CjS77 added this to the Testnet 1 milestone Mar 26, 2019
@CjS77 CjS77 added the backlog label Mar 26, 2019
@neonknight64 neonknight64 self-assigned this May 15, 2019
@CjS77 CjS77 modified the milestones: Testnet 1, Transaction Messaging Jun 4, 2019
CjS77 pushed a commit that referenced this issue Jun 14, 2022
…-refactor

fix: refactor stopping mining nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants