Skip to content

implement nakamoto consensus, follow the latest valid chain #133

Description

@thepiwo
  • 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

Activity

  1. cytadela8 commented on Nov 22, 2017

    @cytadela8
    Contributor

    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.

  2. thepiwo commented on Nov 22, 2017

    @thepiwo
    ContributorAuthor

    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.

  3. cytadela8 commented on Nov 22, 2017

    @cytadela8
    Contributor

    ok, I understand now.

  4. added 6 commits that reference this issue on Dec 14, 2017
  5. added a commit that references this issue on Dec 18, 2017
  6. thepiwo commented on Dec 18, 2017

    @thepiwo
    ContributorAuthor

    closed by #162

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions