-
Notifications
You must be signed in to change notification settings - Fork 237
ASDB update script #395
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
base: main
Are you sure you want to change the base?
ASDB update script #395
Conversation
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.
Pull request overview
This PR adds a new bash script to update an EIP-3076 anti-slashing database JSON file by mapping public keys from a source cluster-lock.json to a target cluster-lock.json. The script is designed to support the workflow where validators are edited via an edit command, producing new cluster-lock files with updated validator configurations.
Key changes:
- Implements pubkey lookup and replacement logic using jq for JSON manipulation
- Validates cluster-lock structure and ensures target has sufficient validators/shares
- Provides comprehensive error handling and validation throughout the update process
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Added script that updates anti-slashing DB json file (https://eips.ethereum.org/EIPS/eip-3076#json-schema) by looking into the source and target cluster-lock.json files produced after an edit command.
Sample output: