From 6fb2307698f4a86a9726a3ed29b10be6982863a2 Mon Sep 17 00:00:00 2001 From: Simon Noetzlin Date: Mon, 4 Sep 2023 11:37:31 +0200 Subject: [PATCH] nit --- tests/e2e/actions.go | 2 +- tests/e2e/steps_double_sign.go | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/e2e/actions.go b/tests/e2e/actions.go index d33c0ab55b..072b89402b 100644 --- a/tests/e2e/actions.go +++ b/tests/e2e/actions.go @@ -1685,7 +1685,7 @@ func (tr TestRun) invokeDoublesignSlash( // Run an instance of the Hermes relayer in the "evidence" mode, // which detects the double signing evidences on the consumer chain. // Each infraction detected is reported to the provider chain using -// a SubmitConsumerDoubleVoting message +// a SubmitConsumerDoubleVoting message. type detectDoubleSigningEvidenceAction struct { chain chainID } diff --git a/tests/e2e/steps_double_sign.go b/tests/e2e/steps_double_sign.go index 2069bfc1e8..81c17db2b1 100644 --- a/tests/e2e/steps_double_sign.go +++ b/tests/e2e/steps_double_sign.go @@ -129,6 +129,7 @@ func stepsDoubleSignOnProviderAndConsumer(consumerName string) []Step { } } +// Steps that make bob double sign on the consumer func stepsCauseDoubleSignOnConsumer(consumerName string) []Step { return []Step{ { @@ -153,6 +154,8 @@ func stepsCauseDoubleSignOnConsumer(consumerName string) []Step { }, }, }, + // detect the double voting infraction + // and jail bob on the provider { action: detectDoubleSigningEvidenceAction{ chain: chainID("consu"), @@ -174,6 +177,7 @@ func stepsCauseDoubleSignOnConsumer(consumerName string) []Step { }, }, }, + // consumer learn about the jailing { action: relayPacketsAction{ chainA: chainID("provi"),