Adds option to enable gRPC Server reflection which helps with debugging
@@ -21,6 +21,7 @@ type Config struct {
BlockInterval time.Duration `default:"5s" flag:"interval,i" info:"time between minted blocks"`
RootKey string `flag:"root-key" info:"root account key"`
Init bool `default:"false" flag:"init" info:"whether to initialize a new account profile"`
+ GRPCDebug bool `default:"false" flag:"grpc-debug" info:"Enable gRPC server reflection for debugging purposes\n Search grpc_cli for more"`
}
var (
@@ -57,6 +58,7 @@ var Cmd = &cobra.Command{
HTTPPort: conf.HTTPPort,
BlockInterval: conf.BlockInterval,
RootAccountKey: &rootAcct.PrivateKey,
+ GRPCDebug: conf.GRPCDebug,
}
server.StartServer(log, serverConf)
