Fix proposal sign bytes. Start tracking blockID in POL

This commit is contained in:
Jae Kwon
2016-08-20 15:08:26 -07:00
committed by Ethan Buchman
parent 1173a85c85
commit 655d829314
9 changed files with 67 additions and 23 deletions

View File

@@ -71,7 +71,8 @@ func decideProposal(cs1 *ConsensusState, vs *validatorStub, height, round int) (
}
// Make proposal
proposal = types.NewProposal(height, round, blockParts.Header(), cs1.Votes.POLRound())
polRound, polBlockID := cs1.Votes.POLInfo()
proposal = types.NewProposal(height, round, blockParts.Header(), polRound, polBlockID)
if err := vs.SignProposal(config.GetString("chain_id"), proposal); err != nil {
panic(err)
}