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

Block producer refactor and chain bus integration #135

Merged
merged 99 commits into from
Dec 21, 2018
Merged

Conversation

leventeliu
Copy link
Contributor

@leventeliu leventeliu commented Dec 12, 2018

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.

auxten and others added 30 commits November 6, 2018 21:00
Should log memprofile filename in memprofile section.
blockproducer/config.go Outdated Show resolved Hide resolved
types/init_service_type.go Outdated Show resolved Hide resolved
…istencyLevel for strong consistency confirmation setting
@zeqing-guo zeqing-guo self-requested a review December 21, 2018 06:37
Copy link
Contributor

@xq262144 xq262144 left a comment

Choose a reason for hiding this comment

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

Approve

@xq262144 xq262144 merged commit 0b96567 into develop Dec 21, 2018
@leventeliu leventeliu deleted the feature/bpRefactor branch December 21, 2018 06:38
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

7 participants