GetByIndex returns the vote corresponding to a given validator index. Panics if `index >= commit.Size()`. Implements VoteSetReader.
(valIdx int32)
| 854 | // Panics if `index >= commit.Size()`. |
| 855 | // Implements VoteSetReader. |
| 856 | func (commit *Commit) GetByIndex(valIdx int32) *Vote { |
| 857 | return commit.GetVote(valIdx) |
| 858 | } |
| 859 | |
| 860 | // IsCommit returns true if there is at least one signature. |
| 861 | // Implements VoteSetReader. |