Skip to content

Commit

Permalink
Merge branch 'sainoe/e2e-equivocation' into sainoe/e2e-misb
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Sep 11, 2024
2 parents fcdb52b + 315d06b commit 379f924
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/e2e/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -2900,7 +2900,8 @@ func (tr Chain) detectConsumerEvidence(
bz, err := cmd.CombinedOutput()
if err == nil {
evidence := gjson.Get(string(bz), "evidence")
if len(evidence.Array()) > 0 {
// we only expect only one evidence
if len(evidence.Array()) == 1 {
infractionHeight = evidence.Array()[0].Get("value.height").Int()
break
}
Expand All @@ -2914,7 +2915,7 @@ func (tr Chain) detectConsumerEvidence(
}

// get the evidence data from the block
// note that the the evidence is added to the next block after the infraction height
// note that the evidence is added to the next block after the infraction height
cmd := tr.target.ExecCommand(
consumerBinaryName,
"query", "block", "--type=height", strconv.Itoa(int(infractionHeight+1)),
Expand Down

0 comments on commit 379f924

Please sign in to comment.