Skip to content

Commit

Permalink
Log out proposer when proposal is rejected (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
teddyding authored Oct 1, 2024
1 parent f6d8ab4 commit cfee87f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -1414,8 +1414,14 @@ func (cs *State) defaultDoPrevote(height int64, round int32) {
cs.metrics.MarkProposalProcessed(isAppValid)

if !isAppValid {
logger.Error("prevote step: state machine rejected a proposed block; this should not happen:"+
"the proposer may be misbehaving; prevoting nil", "err", err)
logger.Error(
"prevote step: state machine rejected a proposed block; this should not happen:"+
"the proposer may be misbehaving; prevoting nil",
"err",
err,
"proposer",
cs.ProposalBlock.Header.ProposerAddress,
)
cs.signAddVote(cmtproto.PrevoteType, nil, types.PartSetHeader{}, nil)
return
}
Expand Down

0 comments on commit cfee87f

Please sign in to comment.