mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-10 23:10:59 +00:00
types: copy commit bit array
This commit is contained in:
@@ -270,7 +270,7 @@ func (commit *Commit) BitArray() *BitArray {
|
||||
commit.bitArray.SetIndex(i, precommit != nil)
|
||||
}
|
||||
}
|
||||
return commit.bitArray
|
||||
return commit.bitArray.Copy()
|
||||
}
|
||||
|
||||
func (commit *Commit) GetByIndex(index int) *Vote {
|
||||
|
||||
Reference in New Issue
Block a user