Skip to content

feat: harden evidence submissions and remove per-consumer infraction params#16

Draft
Pantani wants to merge 14 commits intomainfrom
feat/review-slash-validation
Draft

feat: harden evidence submissions and remove per-consumer infraction params#16
Pantani wants to merge 14 commits intomainfrom
feat/review-slash-validation

Conversation

@Pantani
Copy link
Contributor

@Pantani Pantani commented Feb 4, 2026

close #5

Description

  • Remove per-consumer infraction_parameters from provider tx/query protos (tags reserved) and CLI JSON examples.
  • Harden SubmitConsumerMisbehaviour / SubmitConsumerDoubleVoting against nil inputs and invalid submitters (avoid panics).
  • Double voting: enforce that the infraction header chain_id matches the stored consumer chain-id, and the header height matches the evidence height.
  • Make repeated double-vote evidence submissions idempotent when the validator is already tombstoned.
  • Misbehaviour handling: validate + log only (no slashing/jailing/tombstoning).
  • Add tests for the new validation paths.

Breaking changes

  • infraction_parameters removed from MsgCreateConsumer, MsgUpdateConsumer, Chain, and QueryConsumerChainResponse.

@Pantani Pantani self-assigned this Feb 4, 2026
@Pantani Pantani changed the title feat: remove per‑consumer infraction params and rely on provider defaults feat: harden evidence submissions and remove per-consumer infraction params Feb 13, 2026
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.

Review consumer infraction parameters / slash validator logic

1 participant