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

Add cluster support to allow multiple nodes to mine new blocks #2

Open
1 of 3 tasks
mohanarpit opened this issue Jun 4, 2018 · 0 comments
Open
1 of 3 tasks

Comments

@mohanarpit
Copy link
Owner

mohanarpit commented Jun 4, 2018

Currently, only 1 node is running the logic to mine new blocks (Proof of Work) or picking winners for the new block (Proof of Stake). Ideally, this should be clustered. This can be achieved by getting the clients to also act as master nodes. The following sub-tasks need to be completed for clustering support

  • Communication of nodes between each other: The nodes must talk to each other on a different port. This will allow for separate interactions between clients and master nodes.
  • Discovery of nodes: The nodes will have to discover each other by either multicasting a ping in the network or by bootstrapping a list of nodes and then discovering more from those nodes. Ping might be easier to develop to begin with.
  • Broadcast the new blockchain whenever a new block is added to it so that all the other nodes can also update their local blockchains and reflect the same chain when queried.
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

1 participant