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 ability to broadcast and receive blocks #10

Open
jcopley opened this issue Oct 31, 2017 · 1 comment
Open

Add ability to broadcast and receive blocks #10

jcopley opened this issue Oct 31, 2017 · 1 comment
Assignees

Comments

@jcopley
Copy link

jcopley commented Oct 31, 2017

Create an endpoint to receive a complete block.

When a block is received:

  1. The block index(?), transactions and previous hash are checked to verify that it is a valid addition to the current chain, and not a duplicate. If valid:
  2. The block is added to the current chain.
  3. Current transactions are purged of any transactions that appear in the new block.
  4. The block is re-sent to remaining nodes.

When a new block is mined, it will be sent to other nodes.

@itsromiljain itsromiljain self-assigned this Nov 9, 2017
@lancekrogers
Copy link
Member

Add ability to replace tip of the chain instead of replacing the whole chain

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

3 participants