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 nakamoto consensus, follow the latest valid chain #133

Closed
3 tasks done
thepiwo opened this issue Nov 20, 2017 · 4 comments
Closed
3 tasks done

implement nakamoto consensus, follow the latest valid chain #133

thepiwo opened this issue Nov 20, 2017 · 4 comments
Assignees

Comments

@thepiwo
Copy link
Collaborator

thepiwo commented Nov 20, 2017

  • follow the longest valid chain
  • if there are 2 valid blocks at the same height, wait for the following block
  • if there is a chain discovered that can get validated, replace the current one with it

can be started after #97

@cytadela8
Copy link
Contributor

cytadela8 commented Nov 22, 2017

if there are 2 valid blocks at the same height, wait for the following block

Shouldn't we maybe compare them by hash? (lower is better?) We have to choose something if we would like to mine.

@thepiwo
Copy link
Collaborator Author

thepiwo commented Nov 22, 2017

no, this would be a "most work" kind of consensus, as the miner we choose the one we received earlier to maximize possible profit. We will research other consensus mechanisms in the future, if you have any ideas we can discuss them and build a prototype to validate.

@cytadela8
Copy link
Contributor

ok, I understand now.

cytadela8 added a commit that referenced this issue Dec 14, 2017
cytadela8 added a commit that referenced this issue Dec 14, 2017
cytadela8 added a commit that referenced this issue Dec 15, 2017
cytadela8 added a commit that referenced this issue Dec 18, 2017
thepiwo added a commit that referenced this issue Dec 18, 2017
[GH-133] Nakamoto consensus (longest chain consensus)
@thepiwo
Copy link
Collaborator Author

thepiwo commented Dec 18, 2017

closed by #162

@thepiwo thepiwo closed this as completed Dec 18, 2017
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