Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: assignment value makes no sense #8871

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cmd/osmosisd/cmd/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,8 +477,8 @@ func MainnetGenesisParams() GenesisParams {
genParams.SlashingParams.SlashFractionDowntime = osmomath.ZeroDec() // 0% liveness slashing

genParams.Epochs = epochstypes.DefaultGenesis().Epochs
for _, epoch := range genParams.Epochs {
epoch.StartTime = genParams.GenesisTime
for i := range genParams.Epochs {
genParams.Epochs[i].StartTime = genParams.GenesisTime
}

genParams.IncentivesGenesis = *incentivestypes.DefaultGenesis()
Expand Down Expand Up @@ -526,8 +526,8 @@ func TestnetGenesisParams() GenesisParams {
EpochCountingStarted: false,
})

for _, epoch := range genParams.Epochs {
epoch.StartTime = genParams.GenesisTime
for i := range genParams.Epochs {
genParams.Epochs[i].StartTime = genParams.GenesisTime
}

genParams.StakingParams.UnbondingTime = time.Hour * 24 * 7 * 2 // 2 weeks
Expand Down
3 changes: 0 additions & 3 deletions cmd/osmosisd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ import (
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/keys"
"github.com/cosmos/cosmos-sdk/client/rpc"
"github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/cosmos-sdk/server"
serverconfig "github.com/cosmos/cosmos-sdk/server/config"
servertypes "github.com/cosmos/cosmos-sdk/server/types"
Expand Down Expand Up @@ -1096,8 +1095,6 @@ func createOsmosisAppAndExport(
logger log.Logger, db cosmosdb.DB, traceStore io.Writer, height int64, forZeroHeight bool, jailWhiteList []string,
appOpts servertypes.AppOptions, modulesToExport []string,
) (servertypes.ExportedApp, error) {
encCfg := osmosis.MakeEncodingConfig() // Ideally, we would reuse the one created by NewRootCmd.
DongLieu marked this conversation as resolved.
Show resolved Hide resolved
encCfg.Marshaler = codec.NewProtoCodec(encCfg.InterfaceRegistry)
loadLatest := height == -1
homeDir := cast.ToString(appOpts.Get(flags.FlagHome))
app := osmosis.NewOsmosisApp(logger, db, traceStore, loadLatest, map[int64]bool{}, homeDir, 0, appOpts, osmosis.EmptyWasmOpts)
Expand Down