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

Method StringShort

types/vote_set.go:574–583  ·  view source on GitHub ↗

StringShort returns a short representation of VoteSet. 1. height 2. round 3. signed msg type 4. first 2/3+ majority 5. fraction of voted power 6. votes bit array 7. 2/3+ majority for each peer

()

Source from the content-addressed store, hash-verified

572// 6. votes bit array
573// 7. 2/3+ majority for each peer
574func (voteSet *VoteSet) StringShort() string {
575 if voteSet == nil {
576 return nilVoteSetString
577 }
578 voteSet.mtx.Lock()
579 defer voteSet.mtx.Unlock()
580 _, _, frac := voteSet.sumTotalFrac()
581 return fmt.Sprintf(`VoteSet{H:%v R:%v T:%v +2/3:%v(%v) %v %v}`,
582 voteSet.height, voteSet.round, voteSet.signedMsgType, voteSet.maj23, frac, voteSet.votesBitArray, voteSet.peerMaj23s)
583}
584
585// LogString produces a logging suitable string representation of the
586// vote set.

Callers

nothing calls this directly

Calls 3

sumTotalFracMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected