referrerpolicy=no-referrer-when-downgrade

Module disputes

Source
Expand description

Subsystem benchmark for the dispute coordinator and dispute distribution subsystems.

Scenarios:

  1. Dispute participation.
  • Dispute distribution receives a DisputeRequest message from Validator 1 with votes:
    • valid (Validator 1).
    • invalid (Validator 3) <- malicious.
  • Dispute distribution sends DisputeCoordinatorMessage::ImportStatements.
  • Dispute coordinator imports the votes and participate in the dispute.
  • Dispute coordinator sends DisputeDistributionMessage::SendDispute.
  • Dispute distribution sends DisputeRequest to all validators.
  1. TODO: Dispute confirmed: we need 1/3+1 votes per candidate.
  2. TODO: Dispute concluded: we need 2/3+1 votes per candidate. Here we can test db population
  3. TODO: Spamming: a combination of scenario 3 + multiple of scenario 1

Structs§

DisputesOptions
Parameters specific to the approvals benchmark
TestState

Functions§

benchmark_dispute_coordinator
make_keystore
prepare_test