Skip to content

Commit

Permalink
Fix test for light/evidence: handle FLA backport (#6331)
Browse files Browse the repository at this point in the history
  • Loading branch information
tnasu committed Dec 23, 2021
1 parent eed4d02 commit 1d47c8b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions evidence/verify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func TestVerifyLightClientAttack_Lunatic(t *testing.T) {

conflictingHeader := makeHeaderRandom(10)
conflictingHeader.Time = defaultEvidenceTime.Add(1 * time.Hour)
conflictingHeader.ValidatorsHash = conflictingVals.Hash()
conflictingHeader.VotersHash = conflictingVoterSet.Hash()
conflictingHeader.Proof = proof

Expand Down Expand Up @@ -133,6 +134,7 @@ func TestVerifyLightClientAttack_Lunatic(t *testing.T) {
forwardConflictingHeader := makeHeaderRandom(11)
forwardConflictingHeader.Time = defaultEvidenceTime.Add(30 * time.Minute)
forwardConflictingHeader.ValidatorsHash = conflictingVals.Hash()
forwardConflictingHeader.VotersHash = conflictingVoterSet.Hash()
forwardBlockID := makeBlockID(forwardConflictingHeader.Hash(), 1000, []byte("partshash"))
forwardVoteSet := types.NewVoteSet(evidenceChainID, 11, 1, tmproto.SignedMsgType(2), conflictingVoterSet)
forwardCommit, err := types.MakeCommit(forwardBlockID, 11, 1, forwardVoteSet, conflictingPrivVals, defaultEvidenceTime)
Expand All @@ -144,6 +146,7 @@ func TestVerifyLightClientAttack_Lunatic(t *testing.T) {
Commit: forwardCommit,
},
ValidatorSet: conflictingVals,
VoterSet: conflictingVoterSet,
},
CommonHeight: 4,
TotalVotingPower: 20,
Expand Down

0 comments on commit 1d47c8b

Please sign in to comment.