Skip to content

Conversation

@madisoncarter1234
Copy link

Fixes #3769

Adds a snapshot test that captures the signatures of all consensus-critical stake table events. If any event name or type changes, the test will fail, alerting developers that they're making a breaking change that could cause consensus failures between different versions.

Events tested:

  • ValidatorRegistered, ValidatorRegisteredV2
  • ValidatorExit, ValidatorExitV2
  • Delegated, Undelegated, UndelegatedV2
  • ConsensusKeysUpdated, ConsensusKeysUpdatedV2
  • CommissionUpdated

  Fixes EspressoSystems#3769

  Adds a snapshot test that captures the signatures of all consensus-critical
  stake table events. If any event name or type changes, the test will fail,
  alerting developers that they're making a breaking change that could cause
  consensus failures between different versions.

  Events tested:
  - ValidatorRegistered, ValidatorRegisteredV2
  - ValidatorExit, ValidatorExitV2
  - Delegated, Undelegated, UndelegatedV2
  - ConsensusKeysUpdated, ConsensusKeysUpdatedV2
  - CommissionUpdated
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.

Snapshot test for stake table events

1 participant