Browse Source

types: copy vote set bit array

pull/330/head
Ethan Buchman 8 years ago
parent
commit
69ef1da58c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      types/vote_set.go

+ 1
- 1
types/vote_set.go View File

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


Loading…
Cancel
Save