Skip to content

Commit

Permalink
Add details about the attack types
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Sep 5, 2023
1 parent b4562ef commit 45544c2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/e2e/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -1828,6 +1828,8 @@ func (tr TestRun) invokeDoublesignSlash(

// Cause light client attack evidence for a certain validator to appear on the given chain.
// The evidence will look like the validator equivocated to a light client.
// See https://github.com/cometbft/cometbft/tree/main/spec/light-client/accountability
// for more information about light client attacks.
type lightClientEquivocationAttackAction struct {
validator validatorID
chain chainID
Expand All @@ -1842,6 +1844,8 @@ func (tr TestRun) lightClientEquivocationAttack(

// Cause light client attack evidence for a certain validator to appear on the given chain.
// The evidence will look like the validator tried to perform an amnesia attack.
// See https://github.com/cometbft/cometbft/tree/main/spec/light-client/accountability
// for more information about light client attacks.
type lightClientAmnesiaAttackAction struct {
validator validatorID
chain chainID
Expand All @@ -1854,6 +1858,10 @@ func (tr TestRun) lightClientAmnesiaAttack(
tr.lightClientAttack(action.validator, action.chain, LightClientAmnesiaAttack)
}

// Cause light client attack evidence for a certain validator to appear on the given chain.
// The evidence will look like the validator tried to perform a lunatic attack.
// See https://github.com/cometbft/cometbft/tree/main/spec/light-client/accountability
// for more information about light client attacks.
type lightClientLunaticAttackAction struct {
validator validatorID
chain chainID
Expand Down

0 comments on commit 45544c2

Please sign in to comment.