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

Method BitArrayString

types/vote_set.go:534–538  ·  view source on GitHub ↗

Return the bit-array of votes including the fraction of power that has voted like: "BA{29:xx__x__x_x___x__x_______xxx__} 856/1304 = 0.66"

()

Source from the content-addressed store, hash-verified

532// the fraction of power that has voted like:
533// "BA{29:xx__x__x_x___x__x_______xxx__} 856/1304 = 0.66"
534func (voteSet *VoteSet) BitArrayString() string {
535 voteSet.mtx.Lock()
536 defer voteSet.mtx.Unlock()
537 return voteSet.bitArrayString()
538}
539
540func (voteSet *VoteSet) bitArrayString() string {
541 bAString := voteSet.votesBitArray.String()

Callers 1

toAllRoundVotesMethod · 0.80

Calls 3

bitArrayStringMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected