MCPcopy Create free account
hub / github.com/tendermint/tendermint / bitArrayString

Method bitArrayString

types/vote_set.go:540–544  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

538}
539
540func (voteSet *VoteSet) bitArrayString() string {
541 bAString := voteSet.votesBitArray.String()
542 voted, total, fracVoted := voteSet.sumTotalFrac()
543 return fmt.Sprintf("%s %d/%d = %.2f", bAString, voted, total, fracVoted)
544}
545
546// Returns a list of votes compressed to more readable strings.
547func (voteSet *VoteSet) VoteStrings() []string {

Callers 2

MarshalJSONMethod · 0.95
BitArrayStringMethod · 0.95

Calls 2

sumTotalFracMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected