Skip to content

Commit

Permalink
Add submitting equivocation proposals and change consu->consumerName
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Sep 6, 2023
1 parent 05da271 commit e76ae79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions tests/e2e/steps.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ var shortHappyPathSteps = concatSteps(
stepsDowntime("consu"),
stepsRejectEquivocationProposal("consu", 2), // prop to tombstone bob is rejected
stepsDoubleSignOnProviderAndConsumer("consu"), // carol double signs on provider, bob double signs on consumer
stepsSubmitEquivocationProposal("consu", 2), // now prop to tombstone bob is submitted and accepted
stepsStartRelayer(),
stepsConsumerRemovalPropNotPassing("consu", 2), // submit removal prop but vote no on it - chain should stay
stepsStopChain("consu", 3), // stop chain
stepsConsumerRemovalPropNotPassing("consu", 3), // submit removal prop but vote no on it - chain should stay
stepsStopChain("consu", 4), // stop chain
)

var lightClientAttackSteps = concatSteps(
Expand All @@ -52,9 +53,10 @@ var lightClientAttackSteps = concatSteps(
stepsDowntime("consu"),
stepsRejectEquivocationProposal("consu", 2), // prop to tombstone bob is rejected
stepsLightClientAttackOnProviderAndConsumer("consu"), // carol double signs on provider, bob double signs on consumer
stepsSubmitEquivocationProposal("consu", 2), // now prop to tombstone bob is submitted and accepted
stepsStartRelayer(),
stepsConsumerRemovalPropNotPassing("consu", 2), // submit removal prop but vote no on it - chain should stay
stepsStopChain("consu", 3), // stop chain
stepsConsumerRemovalPropNotPassing("consu", 3), // submit removal prop but vote no on it - chain should stay
stepsStopChain("consu", 4), // stop chain
)

var slashThrottleSteps = concatSteps(
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/steps_light_client_attack.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func stepsLightClientAttackOnProviderAndConsumer(consumerName string) []Step {
// provider will only log the double sign slash
// stepsSubmitEquivocationProposal will cause the double sign slash to be executed
action: lightClientEquivocationAttackAction{
chain: chainID("consu"),
chain: chainID(consumerName),
validator: validatorID("bob"),
},
state: State{
Expand Down

0 comments on commit e76ae79

Please sign in to comment.