diff --git a/lnclient/ldk/ldk.go b/lnclient/ldk/ldk.go index 1f5b696e..4f294a4c 100644 --- a/lnclient/ldk/ldk.go +++ b/lnclient/ldk/ldk.go @@ -131,7 +131,7 @@ func NewLDKService(ctx context.Context, cfg config.Config, eventPublisher events } logger.Logger.WithFields(logrus.Fields{ - "vss": vssToken != "", + "vss_enabled": vssToken != "", }).Info("Creating node") var node *ldk_node.Node if vssToken != "" { diff --git a/service/start.go b/service/start.go index ccf1b84c..078b2c65 100644 --- a/service/start.go +++ b/service/start.go @@ -269,6 +269,7 @@ func (svc *service) launchLNBackend(ctx context.Context, encryptionKey string) e logger.Logger.Infof("Launching LN Backend: %s", lnBackend) var lnClient lnclient.LNClient var err error + vssEnabled := false switch lnBackend { case config.LNDBackendType: LNDAddress, _ := svc.cfg.Get("LNDAddress", encryptionKey) @@ -284,6 +285,7 @@ func (svc *service) launchLNBackend(ctx context.Context, encryptionKey string) e logger.Logger.WithError(err).Error("Failed to request VSS token") return err } + vssEnabled = vssToken != "" lnClient, err = ldk.NewLDKService(ctx, svc.cfg, svc.eventPublisher, mnemonic, ldkWorkdir, svc.cfg.GetEnv().LDKNetwork, nil, false, vssToken) case config.GreenlightBackendType: @@ -342,7 +344,8 @@ func (svc *service) launchLNBackend(ctx context.Context, encryptionKey string) e svc.eventPublisher.Publish(&events.Event{ Event: "nwc_node_started", Properties: map[string]interface{}{ - "node_type": lnBackend, + "node_type": lnBackend, + "vss_enabled": vssEnabled, }, })