main.go
// Main is the entry point of orderer process
func Main() {
fullCmd := kingpin.MustParse(app.Parse(os.Args[1:]))
// "version" command
if fullCmd == version.FullCommand() {
fmt.Println(metadata.GetVersionInfo())
return
}
conf := config.Load()
initializeLoggingLevel(conf)
initializeLocalMsp(conf)
Start(fullCmd, conf)
}
initializeLocalMsp
Start()
initializeGrpcServer
initializeMultichannelRegistrar
NewServer
Last updated