From 1d47c8b5a7b528b8a74a1d620723ecfd36e06d25 Mon Sep 17 00:00:00 2001 From: tnasu Date: Wed, 22 Dec 2021 11:37:27 +0900 Subject: [PATCH] Fix test for `light/evidence: handle FLA backport (#6331)` --- evidence/verify_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/evidence/verify_test.go b/evidence/verify_test.go index 15246cc52..925d197b7 100644 --- a/evidence/verify_test.go +++ b/evidence/verify_test.go @@ -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 @@ -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) @@ -144,6 +146,7 @@ func TestVerifyLightClientAttack_Lunatic(t *testing.T) { Commit: forwardCommit, }, ValidatorSet: conflictingVals, + VoterSet: conflictingVoterSet, }, CommonHeight: 4, TotalVotingPower: 20,