Skip to content

Commit

Permalink
godoc, revert unwanted changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Sep 4, 2023
1 parent 497d4d6 commit 902c1b8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
7 changes: 4 additions & 3 deletions tests/e2e/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -1682,9 +1682,10 @@ func (tr TestRun) invokeDoublesignSlash(
tr.waitBlocks("provi", 10, 2*time.Minute)
}

// Run an instance of the Hermes relayer in the "evidence" mode
// to detect and report the double signing evidences committed on the consumer chain
// to the provider chain
// 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
type detectDoubleSigningEvidenceAction struct {
chain chainID
}
Expand Down
22 changes: 11 additions & 11 deletions tests/e2e/steps_double_sign.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ func stepsDoubleSignOnProviderAndConsumer(consumerName string) []Step {
// slash on provider
chainID("provi"): ChainState{
ValPowers: &map[validatorID]uint{
validatorID("alice"): 510,
validatorID("alice"): 509,
validatorID("bob"): 500,
validatorID("carol"): 0, // from 500 to 0
},
},
chainID(consumerName): ChainState{
ValPowers: &map[validatorID]uint{
validatorID("alice"): 510,
validatorID("alice"): 509,
validatorID("bob"): 500,
validatorID("carol"): 500, // not tombstoned on consumerName yet
validatorID("carol"): 495, // not tombstoned on consumerName yet
},
},
},
Expand All @@ -38,14 +38,14 @@ func stepsDoubleSignOnProviderAndConsumer(consumerName string) []Step {
state: State{
chainID("provi"): ChainState{
ValPowers: &map[validatorID]uint{
validatorID("alice"): 510,
validatorID("alice"): 509,
validatorID("bob"): 500,
validatorID("carol"): 0,
},
},
chainID(consumerName): ChainState{
ValPowers: &map[validatorID]uint{
validatorID("alice"): 510,
validatorID("alice"): 509,
validatorID("bob"): 500,
validatorID("carol"): 0, // tombstoning visible on consumerName
},
Expand All @@ -63,14 +63,14 @@ func stepsDoubleSignOnProviderAndConsumer(consumerName string) []Step {
state: State{
chainID("provi"): ChainState{
ValPowers: &map[validatorID]uint{
validatorID("alice"): 510,
validatorID("alice"): 509,
validatorID("bob"): 500,
validatorID("carol"): 0,
},
},
chainID(consumerName): ChainState{
ValPowers: &map[validatorID]uint{
validatorID("alice"): 510,
validatorID("alice"): 509,
validatorID("bob"): 500,
validatorID("carol"): 0,
},
Expand All @@ -87,14 +87,14 @@ func stepsDoubleSignOnProviderAndConsumer(consumerName string) []Step {
state: State{
chainID("provi"): ChainState{
ValPowers: &map[validatorID]uint{
validatorID("alice"): 510,
validatorID("alice"): 509,
validatorID("bob"): 500, // not tombstoned
validatorID("carol"): 0,
},
},
chainID(consumerName): ChainState{
ValPowers: &map[validatorID]uint{
validatorID("alice"): 510,
validatorID("alice"): 509,
validatorID("bob"): 500, // not tombstoned
validatorID("carol"): 0,
},
Expand All @@ -112,14 +112,14 @@ func stepsDoubleSignOnProviderAndConsumer(consumerName string) []Step {
state: State{
chainID("provi"): ChainState{
ValPowers: &map[validatorID]uint{
validatorID("alice"): 510,
validatorID("alice"): 509,
validatorID("bob"): 500,
validatorID("carol"): 0,
},
},
chainID(consumerName): ChainState{
ValPowers: &map[validatorID]uint{
validatorID("alice"): 510,
validatorID("alice"): 509,
validatorID("bob"): 500, // not tombstoned
validatorID("carol"): 0,
},
Expand Down

0 comments on commit 902c1b8

Please sign in to comment.