|
|
@ -1363,7 +1363,6 @@ func (cs *State) createProposalBlock(ctx context.Context) (block *types.Block, e |
|
|
|
} |
|
|
|
|
|
|
|
var commit *types.Commit |
|
|
|
var votes []*types.Vote |
|
|
|
switch { |
|
|
|
case cs.Height == cs.state.InitialHeight: |
|
|
|
// We're creating a proposal for the first block.
|
|
|
@ -1373,7 +1372,6 @@ func (cs *State) createProposalBlock(ctx context.Context) (block *types.Block, e |
|
|
|
case cs.LastCommit.HasTwoThirdsMajority(): |
|
|
|
// Make the commit from LastCommit
|
|
|
|
commit = cs.LastCommit.MakeCommit() |
|
|
|
votes = cs.LastCommit.GetVotes() |
|
|
|
|
|
|
|
default: // This shouldn't happen.
|
|
|
|
cs.logger.Error("propose step; cannot propose anything without commit for the previous block") |
|
|
@ -1389,7 +1387,7 @@ func (cs *State) createProposalBlock(ctx context.Context) (block *types.Block, e |
|
|
|
|
|
|
|
proposerAddr := cs.privValidatorPubKey.Address() |
|
|
|
|
|
|
|
return cs.blockExec.CreateProposalBlock(ctx, cs.Height, cs.state, commit, proposerAddr, votes) |
|
|
|
return cs.blockExec.CreateProposalBlock(ctx, cs.Height, cs.state, commit, proposerAddr) |
|
|
|
} |
|
|
|
|
|
|
|
// Enter: `timeoutPropose` after entering Propose.
|
|
|
|