Skip to content

Commit

Permalink
chg: remove vesting accounts from RandomGenesisAccounts during simula…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
marcello33 committed Mar 15, 2024
1 parent e64ddcb commit f848064
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions x/auth/simulation/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ import (
"math/big"
"math/rand"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/auth/types"
vestingtypes "github.com/cosmos/cosmos-sdk/x/auth/vesting/types"
)

// Simulation parameter constants
Expand Down Expand Up @@ -38,6 +36,8 @@ func RandomGenesisAccounts(simState *module.SimulationState) types.GenesisAccoun
continue
}

/* HV2: vesting disabled in heimdall, Removing this code otherwise heimdall-v2/app/sim_bench_test.go fails
initialVesting := sdk.NewCoins(sdk.NewInt64Coin(simState.BondDenom, simState.Rand.Int63n(simState.InitialStake.Int64())))
var endTime int64
Expand All @@ -60,6 +60,7 @@ func RandomGenesisAccounts(simState *module.SimulationState) types.GenesisAccoun
} else {
genesisAccs[i] = vestingtypes.NewDelayedVestingAccountRaw(bva)
}
*/
}

return genesisAccs
Expand Down

0 comments on commit f848064

Please sign in to comment.