Browse Source

add error log for failure to create proposal block

wb/txrset
William Banfield 3 years ago
parent
commit
26c4f9088f
No known key found for this signature in database GPG Key ID: EFAD3442BF29E3AC
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      internal/consensus/state.go

+ 5
- 1
internal/consensus/state.go View File

@ -1290,7 +1290,11 @@ func (cs *State) defaultDecideProposal(ctx context.Context, height int64, round
// Create a new proposal block from state/txs from the mempool. // Create a new proposal block from state/txs from the mempool.
var err error var err error
block, err = cs.createProposalBlock(ctx) block, err = cs.createProposalBlock(ctx)
if block == nil || err != nil {
if err != nil {
cs.logger.Error("unable to create proposal block", "error", err)
return
}
if block == nil {
return return
} }
blockParts, err = block.MakePartSet(types.BlockPartSizeBytes) blockParts, err = block.MakePartSet(types.BlockPartSizeBytes)


Loading…
Cancel
Save