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

Method BitArray

types/vote_set.go:345–352  ·  view source on GitHub ↗

Implements VoteSetReader.

()

Source from the content-addressed store, hash-verified

343
344// Implements VoteSetReader.
345func (voteSet *VoteSet) BitArray() *bits.BitArray {
346 if voteSet == nil {
347 return nil
348 }
349 voteSet.mtx.Lock()
350 defer voteSet.mtx.Unlock()
351 return voteSet.votesBitArray.Copy()
352}
353
354func (voteSet *VoteSet) BitArrayByBlockID(blockID BlockID) *bits.BitArray {
355 if voteSet == nil {

Callers

nothing calls this directly

Calls 3

LockMethod · 0.65
UnlockMethod · 0.65
CopyMethod · 0.65

Tested by

no test coverage detected