fix: unique constraint violation for group policy sim genesis (#15943)
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"github.com/cosmos/cosmos-sdk/types/simulation"
|
||||
)
|
||||
|
||||
const DefaultSeedValue = 42
|
||||
|
||||
// List of available flags for the simulator
|
||||
var (
|
||||
FlagGenesisFileValue string
|
||||
@@ -39,7 +41,7 @@ func GetSimulatorFlags() {
|
||||
flag.IntVar(&FlagExportParamsHeightValue, "ExportParamsHeight", 0, "height to which export the randomly generated params")
|
||||
flag.StringVar(&FlagExportStatePathValue, "ExportStatePath", "", "custom file path to save the exported app state JSON")
|
||||
flag.StringVar(&FlagExportStatsPathValue, "ExportStatsPath", "", "custom file path to save the exported simulation statistics JSON")
|
||||
flag.Int64Var(&FlagSeedValue, "Seed", 42, "simulation random seed")
|
||||
flag.Int64Var(&FlagSeedValue, "Seed", DefaultSeedValue, "simulation random seed")
|
||||
flag.IntVar(&FlagInitialBlockHeightValue, "InitialBlockHeight", 1, "initial block to start the simulation")
|
||||
flag.IntVar(&FlagNumBlocksValue, "NumBlocks", 500, "number of new blocks to simulate from the initial block height")
|
||||
flag.IntVar(&FlagBlockSizeValue, "BlockSize", 200, "operations per block")
|
||||
|
||||
Reference in New Issue
Block a user