|
|
@ -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 |
|
|
|