Skip to content

feat(node): abort startup on wrong or missing x25519 registration#4709

Draft
sveitser wants to merge 1 commit into
mainfrom
ma/wrong-x25519-key-abort-early
Draft

feat(node): abort startup on wrong or missing x25519 registration#4709
sveitser wants to merge 1 commit into
mainfrom
ma/wrong-x25519-key-abort-early

Conversation

@sveitser

Copy link
Copy Markdown
Collaborator

From EPOCH_REWARD_VERSION onward a validator whose stake-table entry lacks connect info, or whose local x25519 key matches neither the contract head nor the three newest epoch stake tables (the window cliquenet dials), fails at startup instead of logging. Key rotation is tolerated in both directions; paths where verification is impossible (RPC failure, proxy < V3, head-fetch timeout) still warn and skip. ESPRESSO_NODE_SKIP_CLIQUENET_REGISTRATION_CHECK skips the check.

Also fixes the dead version gate: the check compared base_version with equality, so it never ran on mainnet (base 0.4, upgrade 0.5).

From EPOCH_REWARD_VERSION onward a validator whose stake-table entry
lacks connect info, or whose local x25519 key matches neither the
contract head nor the three newest epoch stake tables (the window
cliquenet dials), fails at startup instead of logging. Key rotation is
tolerated in both directions; paths where verification is impossible
(RPC failure, proxy < V3, head-fetch timeout) still warn and skip.
ESPRESSO_NODE_SKIP_CLIQUENET_REGISTRATION_CHECK skips the check.

Also fixes the dead version gate: the check compared base_version with
equality, so it never ran on mainnet (base 0.4, upgrade 0.5).
@gemini-code-assist

Copy link
Copy Markdown
Contributor
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

let head_fetch = async {
let events = membership
.fetcher()
.fetch_and_store_stake_table_events(addr, finalized.number)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Don't really like this since this fetch can take a very long time for a new node.

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.

1 participant