Block producer refactor and chain bus integration#135
Merged
Conversation
… into feature/chainBus
… into feature/chainBus
Should log memprofile filename in memprofile section.
… into feature/chainBus
… into feature/chainBus
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
This file contains hidden or 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
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.