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 3.0: Integrate DPoS with ChainedBFT #347

Merged
merged 42 commits into from Sep 9, 2019
Merged

DPoS 3.0: Integrate DPoS with ChainedBFT #347

merged 42 commits into from Sep 9, 2019

Conversation

yucaowang
Copy link
Contributor

Description

This PR is to implement DPoS V3.0, which integrate with Chained-BFT to be able to deal with Byzantine Fault Tolerance. The main advantages of DPoS V3.0 are:

  • Byzantine Tolerance: Using Chained-BFT to make sure the network could tolerate 1/3 Byzantine attack.
  • Transaction Confirmation: Each transaction on trunk of the chain will be locked after 3 blocks.

Fixes #309

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Brief of your solution

By using Chained-BFT(HotStuff), DPoS core peers can collect 2/3 votes on new block in O(n) communication complexity in a chained workflow. So that each block cannot be rollback after 3 blocks' confirmation.

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

]
},
"bft_config": {
"netMsgChanSize": 1000
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it would be better to configure it as a node config.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this field from consensus config

Copy link
Contributor

@qizheng09 qizheng09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@fxsjy fxsjy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yucaowang yucaowang merged commit 13a7421 into xuperchain:master Sep 9, 2019
@yucaowang yucaowang deleted the dpos_v3 branch September 9, 2019 09:00
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.

Consensus V3.0
3 participants