Skip to content

Commit

Permalink
Update x/sequencer/keeper/params.go
Browse files Browse the repository at this point in the history
  • Loading branch information
omritoptix authored Aug 31, 2024
1 parent 44b19cb commit 3b6c037
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions x/sequencer/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ const (
HubExpectedTimePerBlock = 6 * time.Second
)

// ValidateParams is stateful validation for params
// it checks if that UnbondingTime greater then x/rollapp's disputePeriod
// and that the correct denom is set
// ValidateParams is a stateful validation for params.
// it validates that unbonding time is greater then x/rollapp's dispute period
// and that the correct denom is set.
// The unbonding time is set by governance hence it's more of a sanity/human error check which
// in theory should never fail as setting such unbonding time has wide protocol security implications beyond the dispute period.
func (k Keeper) ValidateParams(ctx sdk.Context, params types.Params) error {
// validate unbonding time > dispute period
rollappParams := k.rollappKeeper.GetParams(ctx)
Expand Down

0 comments on commit 3b6c037

Please sign in to comment.