MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / GetByIndex

Method GetByIndex

types/block.go:856–858  ·  view source on GitHub ↗

GetByIndex returns the vote corresponding to a given validator index. Panics if `index >= commit.Size()`. Implements VoteSetReader.

(valIdx int32)

Source from the content-addressed store, hash-verified

854// Panics if `index >= commit.Size()`.
855// Implements VoteSetReader.
856func (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.

Callers

nothing calls this directly

Calls 1

GetVoteMethod · 0.95

Tested by

no test coverage detected