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

Refactor block production #1795

Merged
merged 40 commits into from
Oct 3, 2023
Merged

Refactor block production #1795

merged 40 commits into from
Oct 3, 2023

Conversation

xDimon
Copy link
Member

@xDimon xDimon commented Sep 6, 2023

Referenced issues

Resolves #1598
Related with #1591 as preparation

Description of the Change

Separate block production consensus and mechanism of changing and processing slots and epochs.
Support of multi-consensuses and select needed basing parent block data.
Simplify and/or refactor some data and methods

Benefits

Ability to support several block production consensuses.
Base for developing SASSAFRAS.

Usage Examples or Tests

New tests have provided, existing tests have adapted.

Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
feature: consensus selector

Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
…l (timeline)

Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
…ation::SyncMethod

Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
refactor: replace aggregating constructor call of block headers

Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
…e (and rename corresponding events)

Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
core/primitives/block_header.hpp Outdated Show resolved Hide resolved
core/primitives/block_header.hpp Outdated Show resolved Hide resolved
core/consensus/timeline/impl/slots_util_impl.cpp Outdated Show resolved Hide resolved
core/consensus/timeline/impl/slots_util_impl.cpp Outdated Show resolved Hide resolved
core/consensus/timeline/impl/timeline_impl.cpp Outdated Show resolved Hide resolved
core/consensus/production_consensus.hpp Show resolved Hide resolved
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
Signed-off-by: Dmitriy Khaustov aka xDimon <[email protected]>
@xDimon xDimon enabled auto-merge (squash) October 3, 2023 07:26
@xDimon xDimon merged commit 965aaf0 into master Oct 3, 2023
7 of 10 checks passed
@xDimon xDimon deleted the refactor/block_production branch October 3, 2023 07:31
@turuslan turuslan mentioned this pull request Oct 6, 2023
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.

Update dependencies on BABE to prepare for SASSFRAS
3 participants