From e76ae79dcc5234cbf825eb324bee83695856ce28 Mon Sep 17 00:00:00 2001 From: Philip Offtermatt Date: Wed, 6 Sep 2023 11:44:40 +0200 Subject: [PATCH] Add submitting equivocation proposals and change consu->consumerName --- tests/e2e/steps.go | 10 ++++++---- tests/e2e/steps_light_client_attack.go | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/e2e/steps.go b/tests/e2e/steps.go index f6a3ba04fc..6fb284c07a 100644 --- a/tests/e2e/steps.go +++ b/tests/e2e/steps.go @@ -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( @@ -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( diff --git a/tests/e2e/steps_light_client_attack.go b/tests/e2e/steps_light_client_attack.go index 63b3727356..f00d5f5bd6 100644 --- a/tests/e2e/steps_light_client_attack.go +++ b/tests/e2e/steps_light_client_attack.go @@ -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{