Browse Source

types: Remove duplicated validation in VerifyCommit (#4991)

pull/4994/head
Stevan Ognjanovic 5 years ago
committed by GitHub
parent
commit
89665e7d67
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions
  1. +0
    -7
      types/validator_set.go

+ 0
- 7
types/validator_set.go View File

@ -671,13 +671,6 @@ func (vals *ValidatorSet) VerifyCommit(chainID string, blockID BlockID,
return fmt.Errorf("invalid commit -- wrong block ID: want %v, got %v",
blockID, commit.BlockID)
}
if height != commit.Height {
return NewErrInvalidCommitHeight(height, commit.Height)
}
if !blockID.Equals(commit.BlockID) {
return fmt.Errorf("invalid commit -- wrong block ID: want %v, got %v",
blockID, commit.BlockID)
}
talliedVotingPower := int64(0)
votingPowerNeeded := vals.TotalVotingPower() * 2 / 3


Loading…
Cancel
Save