Harden masternode handling to avoid empty validator sets#4
Draft
Copilot wants to merge 3 commits into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Owner
Co-authored-by: Deejae69 <179696940+Deejae69@users.noreply.github.com> Agent-Logs-Url: https://github.com/Deejae69/nethermind/sessions/dca6063e-0d71-4707-af2a-aad7ffcd5f30
Co-authored-by: Deejae69 <179696940+Deejae69@users.noreply.github.com> Agent-Logs-Url: https://github.com/Deejae69/nethermind/sessions/dca6063e-0d71-4707-af2a-aad7ffcd5f30
Copilot
AI
changed the title
[WIP] Enhance master process efficiency
Harden masternode handling to avoid empty validator sets
Mar 24, 2026
There was a problem hiding this comment.
No issues found across 5 files
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Modifies core consensus logic and error handling in XDC masternode selection, which is a critical path requiring human review for protocol safety.
Deejae69
approved these changes
Mar 29, 2026
Deejae69
approved these changes
Apr 4, 2026
Deejae69
approved these changes
Apr 4, 2026
Deejae69
approved these changes
Apr 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The “Master improvements” scope needed safeguards to prevent empty masternode sets and clearer validation when epoch data is missing.
Changes
Key check:
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing
Targeted XDC tests added/executed for penalized snapshots and missing/empty masternode cases.
Documentation
Requires documentation update
Requires explanation in Release Notes
Remarks
None.
Original prompt
⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.
Summary by cubic
Hardens masternode handling to prevent crashes and report clear errors when none are available. Adds explicit checks: SnapshotManager now throws when penalties remove all candidates, XdcHotStuff throws on empty/null sets, and XdcSealValidator fails with a message if epoch info is missing or empty; adds focused tests.
Written for commit 55f6e34. Summary will update on new commits.