Skip to content

Commit

Permalink
chore: do not jail because of unestimated messages
Browse files Browse the repository at this point in the history
  • Loading branch information
maharifu committed Sep 19, 2024
1 parent 4966bfc commit 425b01b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions x/consensus/keeper/concensus_keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,12 @@ func (k Keeper) jailValidatorsWhichMissedRelaying(
sdkCtx sdk.Context,
msg types.QueuedSignedMessageI,
) error {
if msg.GetGasEstimate() == 0 {
// If we don't have a gas estimate, this was probably not the
// validator's fault, so we do nothing
return nil
}

consensusMsg, err := msg.ConsensusMsg(k.cdc)
if err != nil {
return err
Expand Down

0 comments on commit 425b01b

Please sign in to comment.