-
Notifications
You must be signed in to change notification settings - Fork 73
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
Conversation
libraries/chain/controller.cpp
Outdated
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() |
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.
Is it possible to create valid
in one place in transition_to_savanna()
?
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.
Factored out into a function.
Note:start |
Add support for transition to savanna running with
read-mode = irreversible
.Resolves #2286