mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-05 13:05:09 +00:00
evidence: enforce ordering in DuplicateVoteEvidence (#4151)
Fixes #4143
This commit is contained in:
@@ -504,11 +504,7 @@ func newEvidence(
|
||||
vote2_.Signature, err = val.Key.PrivKey.Sign(vote2_.SignBytes(chainID))
|
||||
require.NoError(t, err)
|
||||
|
||||
return types.DuplicateVoteEvidence{
|
||||
PubKey: val.Key.PubKey,
|
||||
VoteA: vote,
|
||||
VoteB: vote2_,
|
||||
}
|
||||
return *types.NewDuplicateVoteEvidence(val.Key.PubKey, vote, vote2_)
|
||||
}
|
||||
|
||||
func makeEvidences(
|
||||
|
||||
Reference in New Issue
Block a user