Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zsystm committed Sep 19, 2024
1 parent 984de95 commit 6cb1e6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/x/evmengine/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ func (k *Keeper) parseAndVerifyProposedPayload(ctx context.Context, msg *types.M
//
// Note that the validator set can change, so this is an optimistic check.
func (k *Keeper) isNextProposer(ctx context.Context, currentProposer []byte, currentHeight int64) (bool, error) {
// cometAPI is lazily set and may be nil on startup (e.g. replayBlocks).
// PostFinalize can be called during block replay (performed in newCometNode),
// but cmtAPI is set only after newCometNode completes (see app.SetCometAPI), so a nil check is necessary.
if k.cmtAPI == nil {
return false, nil
}
Expand Down

0 comments on commit 6cb1e6d

Please sign in to comment.