Browse Source

types: copy commit bit array

pull/330/head
Ethan Buchman 8 years ago
parent
commit
6be5bda8c9
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      types/block.go

+ 1
- 1
types/block.go View File

@ -270,7 +270,7 @@ func (commit *Commit) BitArray() *BitArray {
commit.bitArray.SetIndex(i, precommit != nil) commit.bitArray.SetIndex(i, precommit != nil)
} }
} }
return commit.bitArray
return commit.bitArray.Copy()
} }
func (commit *Commit) GetByIndex(index int) *Vote { func (commit *Commit) GetByIndex(index int) *Vote {


Loading…
Cancel
Save