mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-30 19:51:58 +00:00
BitArray takes a pointer receiver. More logging
This commit is contained in:
@@ -26,7 +26,7 @@ type VoteSet struct {
|
||||
mtx sync.Mutex
|
||||
valSet *sm.ValidatorSet
|
||||
votes []*types.Vote // validator index -> vote
|
||||
votesBitArray BitArray // validator index -> has vote?
|
||||
votesBitArray *BitArray // validator index -> has vote?
|
||||
votesByBlock map[string]uint64 // string(blockHash)+string(blockParts) -> vote sum.
|
||||
totalVotes uint64
|
||||
maj23Hash []byte
|
||||
@@ -148,9 +148,9 @@ func (voteSet *VoteSet) AddFromCommits(commits *VoteSet) {
|
||||
}
|
||||
}
|
||||
|
||||
func (voteSet *VoteSet) BitArray() BitArray {
|
||||
func (voteSet *VoteSet) BitArray() *BitArray {
|
||||
if voteSet == nil {
|
||||
return BitArray{}
|
||||
return nil
|
||||
}
|
||||
voteSet.mtx.Lock()
|
||||
defer voteSet.mtx.Unlock()
|
||||
|
Reference in New Issue
Block a user