mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 13:55:17 +00:00
types: simplify VerifyCommitTrusting
Closes #4783 It looks like we're validating Commit twice. Also, height and blockID params were coming from the commit, so no need to pass them separately.
This commit is contained in:
@@ -509,8 +509,6 @@ func (ev ConflictingHeadersEvidence) VerifyComposite(committedHeader *Header, va
|
||||
// trusted validator set.
|
||||
if err := valSet.VerifyCommitTrusting(
|
||||
alternativeHeader.ChainID,
|
||||
alternativeHeader.Commit.BlockID,
|
||||
alternativeHeader.Height,
|
||||
alternativeHeader.Commit,
|
||||
tmmath.Fraction{Numerator: 1, Denominator: 3}); err != nil {
|
||||
return errors.Wrap(err, "alt header does not have 1/3+ of voting power of our validator set")
|
||||
|
||||
Reference in New Issue
Block a user