consensusAddrstring// Address of the consensus engine <host>:<port>
datadirstring// Path to the working dir
configstring// `file:<path>`` to specify config file in file system, `embed:<path>`` to use embedded file, `test` to register test interface and receive config from test driver
cmd.Flags().StringVar(&datadir,"datadir",paths.DefaultDataDir(),"directory where databases and temporary files are kept")
must(cmd.MarkFlagDirname("datadir"))
}
funcwithApiAddr(cmd*cobra.Command){
cmd.Flags().StringVar(&consensusAddr,"consensus.api.addr","localhost:9093","address to listen to for consensus engine api <host>:<port>")
}
funcwithConfig(cmd*cobra.Command){
cmd.Flags().StringVar(&config,"config","","`file:<path>` to specify config file in file system, `embed:<path>` to use embedded file, `test` to register test interface and receive config from test driver")