Skip to content

Commit

Permalink
smalls
Browse files Browse the repository at this point in the history
  • Loading branch information
shaspitz committed Jul 20, 2023
1 parent 66fd18f commit 46251c9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions x/ccv/consumer/keeper/throttle_retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import (
consumertypes "github.com/cosmos/interchain-security/v3/x/ccv/consumer/types"
)

// TODO: e2e tests

//
// Throttling with retries follows a FSM design:
//
Expand Down Expand Up @@ -54,8 +52,7 @@ func (k Keeper) PacketSendingPermitted(ctx sdktypes.Context) bool {
// We are waiting on a reply from provider, block sending
return false
}
// TODO: implement retry delay period as param
// retryDelayPeriod := k.GetParams(ctx).RetryDelayPeriod
// Retry delay period could be implemented as a param, but 1 hour is reasonable
retryDelayPeriod := time.Hour
timeSinceSend := ctx.BlockTime().Sub(record.SendTime)
// If retry delay period has elapsed, we can send again
Expand Down

0 comments on commit 46251c9

Please sign in to comment.