address PR comments

This commit is contained in:
zramsay
2017-05-30 11:00:40 -04:00
parent cf31f8d06f
commit bf5181d9ca
3 changed files with 19 additions and 5 deletions

View File

@ -155,6 +155,18 @@ func updateValidators(validators *types.ValidatorSet, changedValidators []*abci.
return nil
}
// return a bit array of validators that signed the last commit
// NOTE: assumes commits have already been authenticated
/*func commitBitArrayFromBlock(block *types.Block) *cmn.BitArray {
signed := cmn.NewBitArray(len(block.LastCommit.Precommits))
for i, precommit := range block.LastCommit.Precommits {
if precommit != nil {
signed.SetIndex(i, true) // val_.LastCommitHeight = block.Height - 1
}
}
return signed
}*/
//-----------------------------------------------------
// Validate block