Skip to content

Commit

Permalink
Chore(epoch): remove epoch count check from validateGenesis (#461)
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangdv2429 authored Jun 20, 2024
1 parent b3343e1 commit a8b97b8
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions x/epochs/keeper/genesis.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package keeper

import (
"errors"

sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/dymensionxyz/dymension-rdk/x/epochs/types"
Expand All @@ -13,10 +11,6 @@ import (
func (k Keeper) InitGenesis(ctx sdk.Context, genState types.GenesisState) {
// set epoch info from genesis
for _, epoch := range genState.Epochs {
// enforce EpochCountingStarted is false for all epochs
if epoch.EpochCountingStarted {
panic(errors.New("epoch counting should NOT be started at genesis"))
}
err := k.AddEpochInfo(ctx, epoch)
if err != nil {
panic(err)
Expand Down

0 comments on commit a8b97b8

Please sign in to comment.