|
@ -325,7 +325,7 @@ func (voteSet *VoteSet) BitArrayByBlockID(blockID BlockID) *BitArray { |
|
|
defer voteSet.mtx.Unlock() |
|
|
defer voteSet.mtx.Unlock() |
|
|
votesByBlock, ok := voteSet.votesByBlock[blockID.Key()] |
|
|
votesByBlock, ok := voteSet.votesByBlock[blockID.Key()] |
|
|
if ok { |
|
|
if ok { |
|
|
return votesByBlock.bitArray |
|
|
|
|
|
|
|
|
return votesByBlock.bitArray.Copy() |
|
|
} |
|
|
} |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|