terminal: add clarifying comment for LND startup

As it's quite confusing by just looking at `litd` codebase that LND will
execute `litd`'s `RegisterGrpcSubserver` function during the setup of
the LND connection, we add a comment to clarify this.
This commit is contained in:
Viktor Tigerström 2025-08-13 16:09:28 +02:00
parent ef87c7a609
commit a79187f84e
No known key found for this signature in database
GPG key ID: B984570980684DCC

View file

@ -597,6 +597,9 @@ func (g *LightningTerminal) start(ctx context.Context) error {
go func() {
defer g.wg.Done()
// Note that LND will call litd's RegisterGrpcSubserver
// function during the execution of this, as `g` is
// referenced in the passed `implCfg`
err := lnd.Main(g.cfg.Lnd, lisCfg, implCfg, interceptor)
if e, ok := err.(*flags.Error); err != nil &&
(!ok || e.Type != flags.ErrHelp) {