fix: add Greenlight to SupportsBolt12 in /api/info

Greenlight nodes support bolt12 offers (MakeOffer via cln.Offer). The
/api/info response was missing the GREENLIGHT backend type in its
SupportsBolt12 check.
This commit is contained in:
welliv 2026-08-08 17:50:42 +00:00
parent dfe7f5dc01
commit f3f52ac04d

View file

@ -1519,7 +1519,7 @@ func (api *api) GetInfo(ctx context.Context) (*InfoResponse, error) {
info.LdkVssEnabled = ldkVssEnabled == "true"
info.JitChannelsEnabled = jitChannelsEnabled != "false"
info.VssSupported = backendType == config.LDKBackendType && api.cfg.GetEnv().LDKVssUrl != ""
info.SupportsBolt12 = backendType == config.LDKBackendType || backendType == config.CLNBackendType
info.SupportsBolt12 = backendType == config.LDKBackendType || backendType == config.CLNBackendType || backendType == config.GreenlightBackendType
info.AutoUnlockPasswordEnabled = autoUnlockPassword != ""
info.AutoUnlockPasswordSupported = api.cfg.GetEnv().IsDefaultClientId()
info.Relays = []InfoResponseRelay{}