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

DPOS poc initial commit #3

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

singhabhilash
Copy link

@singhabhilash singhabhilash commented Aug 28, 2018

Initial poc for implementing DPOS. Some notes -

  1. A user can upvote validators as many times as they want. We should probably have a limit on the number of upvotes a user can cast in a single day.
  2. Currently validator list is updated after all transactions. Although, this wouldn't change the result, this will probably slow down the process. We need the info about last transaction in EndBlock, not sure currently how to get it.
  3. We will also need hooks for removal/addition of validators on the fly. Currently validators are only added on genesis. Support for validator addition/removal can be done in future.
  4. Data of all validators is stored in db. If a validator dies, the entry currently isn't remove from db(see 3). For updating, we select the first 21 validators with most power and set the other's power to 0(effectively removing from participating in consensus).
  5. Although I have written this with multiple validators in mind, but I have only tested it with 1 node.

Note: Tested against tendermint binary 0.19.7-a017f2fd (https://github.com/tendermint/tendermint/releases/tag/v0.19.7)

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

Successfully merging this pull request may close these issues.

None yet

1 participant