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

slashing: enshrine the slashing program #4942

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AshwinSekar
Copy link

Problem

The slashing program will initially be deployed to S1asHs4je6wPb2kWiHqNNdpNRiDaBEDQyfyCThhsrgv a key that I own.
We wish to enshrine the program at S1ashing11111111111111111111111111111111111 and require that further updates be made via a feature gated validator change.

Summary of Changes

On the first epoch that create_slashing_program: sProgVaNWkYdP2eTRAy1CPrgb3b9p8yXCASrPEqo6VJ is activated:

  • Verify that the verified build hash of the deployed program matches the expected hash computed from the spl-slashing v.1.0 release
  • Clone the program account, and set the program data address to point to the PDA of the enshrined address
  • Clone the program data account, set the upgrade authority to the system program
  • Write these cloned accounts at the enshrined address and PDA respectively

@AshwinSekar AshwinSekar force-pushed the slashing branch 2 times, most recently from 6106f33 to 04787af Compare February 12, 2025 06:26
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