Add more comments on public functions and extra logging during 'enterPrevote'

Signed-off-by: Adrian Brink <adrian@brink-holdings.com>
This commit is contained in:
Adrian Brink
2017-07-09 20:35:48 +02:00
parent eed3959749
commit b07d01f102
4 changed files with 23 additions and 19 deletions

View File

@ -939,6 +939,7 @@ func (cs *ConsensusState) defaultDoPrevote(height int, round int) {
// Prevote cs.ProposalBlock
// NOTE: the proposal signature is validated when it is received,
// and the proposal block parts are validated as they are received (against the merkle hash in the proposal)
logger.Info("enterPrevote: ProposalBlock is valid and voted on")
cs.signAddVote(types.VoteTypePrevote, cs.ProposalBlock.Hash(), cs.ProposalBlockParts.Header())
}