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

IF: Support irreversible read-mode under Savanna #2335

Merged
merged 11 commits into from
Mar 28, 2024

Conversation

heifner
Copy link
Member

@heifner heifner commented Mar 22, 2024

Add support for transition to savanna running with read-mode = irreversible.

Resolves #2286

@heifner heifner linked an issue Mar 22, 2024 that may be closed by this pull request
@heifner heifner added the OCI Work exclusive to OCI team label Mar 22, 2024
libraries/chain/controller.cpp Outdated Show resolved Hide resolved
fork_db.switch_to_legacy(); // apply block uses to know what types to create
fc::scoped_exit<std::function<void()>> e([&]{fork_db.switch_to_both();});
apply_block(br, legacy, controller::block_status::complete, trx_meta_cache_lookup{});
// irreversible apply was just done, calculate new_valid here instead of in transition_to_savanna()
Copy link
Member

Choose a reason for hiding this comment

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

Is it possible to create valid in one place in transition_to_savanna()?

Copy link
Member Author

Choose a reason for hiding this comment

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

Factored out into a function.

tests/transition_to_if.py Outdated Show resolved Hide resolved
@ericpassmore
Copy link
Contributor

Note:start
group: IF
category: INTERNALS
summary: Add support for transition to savanna running with read-mode = irreversible.
Note:end

libraries/chain/controller.cpp Outdated Show resolved Hide resolved
libraries/chain/fork_database.cpp Outdated Show resolved Hide resolved
libraries/chain/controller.cpp Outdated Show resolved Hide resolved
libraries/chain/controller.cpp Outdated Show resolved Hide resolved
Base automatically changed from GH-2057-transition to hotstuff_integration March 27, 2024 12:26
@heifner heifner requested a review from linh2931 March 27, 2024 12:27
@heifner heifner merged commit 1cd0b35 into hotstuff_integration Mar 28, 2024
34 checks passed
@heifner heifner deleted the GH-2286-irreversible branch March 28, 2024 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IF: Support irreversible read-mode under Savanna
4 participants