mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-24 10:11:48 +00:00
remove some TODOs
This commit is contained in:
@ -313,7 +313,6 @@ func (s *State) validateBlock(b *types.Block) error {
|
|||||||
if _, err := s.VerifyEvidence(ev); err != nil {
|
if _, err := s.VerifyEvidence(ev); err != nil {
|
||||||
return types.NewEvidenceInvalidErr(ev, err)
|
return types.NewEvidenceInvalidErr(ev, err)
|
||||||
}
|
}
|
||||||
// TODO: mark evidence as committed
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
@ -126,9 +126,6 @@ func (dve *DuplicateVoteEvidence) Hash() []byte {
|
|||||||
// Verify returns an error if the two votes aren't conflicting.
|
// Verify returns an error if the two votes aren't conflicting.
|
||||||
// To be conflicting, they must be from the same validator, for the same H/R/S, but for different blocks.
|
// To be conflicting, they must be from the same validator, for the same H/R/S, but for different blocks.
|
||||||
func (dve *DuplicateVoteEvidence) Verify(chainID string) error {
|
func (dve *DuplicateVoteEvidence) Verify(chainID string) error {
|
||||||
|
|
||||||
// TODO: verify (cs.Height - dve.Height) < MaxHeightDiff
|
|
||||||
|
|
||||||
// H/R/S must be the same
|
// H/R/S must be the same
|
||||||
if dve.VoteA.Height != dve.VoteB.Height ||
|
if dve.VoteA.Height != dve.VoteB.Height ||
|
||||||
dve.VoteA.Round != dve.VoteB.Round ||
|
dve.VoteA.Round != dve.VoteB.Round ||
|
||||||
|
Reference in New Issue
Block a user