mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-26 03:01:42 +00:00
POL tests
This commit is contained in:
@ -79,6 +79,9 @@ func (pol *POL) Verify(vset *state.ValidatorSet) error {
|
||||
if val == nil {
|
||||
return Errorf("Invalid validator for commit %v for POL %v", sig, pol)
|
||||
}
|
||||
if round >= pol.Round {
|
||||
return Errorf("Invalid commit round %v for POL %v", round, pol)
|
||||
}
|
||||
|
||||
commitDoc := BinaryBytes(&Vote{Height: pol.Height, Round: round,
|
||||
Type: VoteTypeCommit, BlockHash: pol.BlockHash}) // TODO cache
|
||||
|
Reference in New Issue
Block a user