MCPcopy Create free account
hub / github.com/akash-network/node / NewConfigFromFlags

Function NewConfigFromFlags

app/sim/sim_config.go:58–76  ·  view source on GitHub ↗

NewConfigFromFlags creates a simulation from the retrieved values of the flags.

()

Source from the content-addressed store, hash-verified

56
57// NewConfigFromFlags creates a simulation from the retrieved values of the flags.
58func NewConfigFromFlags() simulation.Config {
59 return simulation.Config{
60 GenesisFile: FlagGenesisFileValue,
61 ParamsFile: FlagParamsFileValue,
62 ExportParamsPath: FlagExportParamsPathValue,
63 ExportParamsHeight: FlagExportParamsHeightValue,
64 ExportStatePath: FlagExportStatePathValue,
65 ExportStatsPath: FlagExportStatsPathValue,
66 Seed: FlagSeedValue,
67 InitialBlockHeight: FlagInitialBlockHeightValue,
68 NumBlocks: FlagNumBlocksValue,
69 BlockSize: FlagBlockSizeValue,
70 Lean: FlagLeanValue,
71 Commit: FlagCommitValue,
72 OnOperation: FlagOnOperationValue,
73 AllInvariants: FlagAllInvariantsValue,
74 DBBackend: "goleveldb",
75 }
76}

Callers 3

TestAppStateDeterminismFunction · 0.92
setupSimulationAppFunction · 0.92
SetupSimulationFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestAppStateDeterminismFunction · 0.74
setupSimulationAppFunction · 0.74