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
()
| 572 | // 6. votes bit array |
| 573 | // 7. 2/3+ majority for each peer |
| 574 | func (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. |
nothing calls this directly
no test coverage detected