-
Notifications
You must be signed in to change notification settings - Fork 149
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
Block producer refactor and chain bus integration #135
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… into feature/chainBus
… into feature/chainBus
Should log memprofile filename in memprofile section.
… into feature/chainBus
… into feature/chainBus
leventeliu
force-pushed
the
feature/bpRefactor
branch
from
December 18, 2018 19:02
8a4dba1
to
e34e9c9
Compare
xq262144
reviewed
Dec 19, 2018
auxten
reviewed
Dec 21, 2018
…QL into feature/bpRefactor
…onsistency config
auxten
approved these changes
Dec 21, 2018
…istencyLevel for strong consistency confirmation setting
xq262144
approved these changes
Dec 21, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this new design, we use an immutable database to keep track of the chain state upon last irreversible block. Each optional brach keeps a runtime cache of its local state. Branches will grow, fork, or switch between one each other, driven by block producing and synchronization, and transactions will apply to the branch states.
Theoretically, block producers should maintain an eventual consistency chain given that the preset confirmation meets BFT requirement.
Chain bus model is added to chain structure for further use.