mirror of
https://github.com/getAlby/hub.git
synced 2026-08-13 12:33:39 +02:00
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:
parent
dfe7f5dc01
commit
f3f52ac04d
1 changed files with 1 additions and 1 deletions
|
|
@ -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{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue