add optional custom node name

This commit is contained in:
kiwiidb
2022-02-01 09:22:44 +01:00
parent db8fb009a3
commit 7e2b432790
2 changed files with 5 additions and 1 deletions

View File

@@ -25,7 +25,10 @@ func (controller *GetInfoController) GetInfo(c echo.Context) error {
if err != nil {
return err
}
if controller.svc.Config.CustomName != "" {
info.Alias = controller.svc.Config.CustomName
}
// BlueWallet right now requires a `identity_pubkey` in the response
// https://github.com/BlueWallet/BlueWallet/blob/a28a2b96bce0bff6d1a24a951b59dc972369e490/class/wallets/lightning-custodian-wallet.js#L578
return c.JSON(http.StatusOK, &info)
return c.JSON(http.StatusOK, info)
}