NewConfigFromFlags creates a simulation from the retrieved values of the flags.
()
| 56 | |
| 57 | // NewConfigFromFlags creates a simulation from the retrieved values of the flags. |
| 58 | func 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 | } |
no outgoing calls