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

Move savanna pending lib calculation to forkdb add() #350

Merged
merged 3 commits into from
Jul 10, 2024
Merged

Conversation

heifner
Copy link
Member

@heifner heifner commented Jul 10, 2024

Move tracking of Savanna pending LIB into fork database. The fork database is in charge of tracking and persisting cached current pending Savanna LIB.

Resolves #333

@heifner heifner requested review from greg7mdp and linh2931 July 10, 2024 18:17
@heifner heifner added the OCI Work exclusive to OCI team label Jul 10, 2024
return {};
const auto& if_ext = std::get<instant_finality_extension>(itr->second);
return if_ext.qc_claim;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

We really should have a generic function to extract an extension (like template<typename Ext> Ext extract_extension(), but checking if the extension is present and returning a std::optional).

auto itr = header_exts.lower_bound(instant_finality_extension::extension_id());
if (itr == header_exts.end())
return {};
const auto& if_ext = std::get<instant_finality_extension>(itr->second);
Copy link
Member

Choose a reason for hiding this comment

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

Should we change this long name instant_finality_extension to savanna_extension or something?

@heifner heifner merged commit f72337d into main Jul 10, 2024
36 checks passed
@heifner heifner deleted the GH-333-forkdb-lib branch July 10, 2024 20:10
@ericpassmore
Copy link
Contributor

Note:start
group: STABILITY
category: INTERNALS
summary: Move tracking of Savanna pending LIB into fork database. The fork database is in charge of tracking and persisting cached current pending Savanna LIB.
Note:end

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
4 participants