mirror of
https://github.com/getAlby/lndhub.go.git
synced 2025-12-24 08:05:02 +01:00
Save invoice destination
And save the node pubkey in the service to make it usable
This commit is contained in:
@@ -2,6 +2,7 @@ package service
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/hex"
|
||||
|
||||
"github.com/lightningnetwork/lnd/lnrpc"
|
||||
)
|
||||
@@ -9,3 +10,7 @@ import (
|
||||
func (svc *LndhubService) GetInfo(ctx context.Context) (*lnrpc.GetInfoResponse, error) {
|
||||
return svc.LndClient.GetInfo(ctx, &lnrpc.GetInfoRequest{})
|
||||
}
|
||||
|
||||
func (svc *LndhubService) GetIdentPubKeyHex() string {
|
||||
return hex.EncodeToString(svc.IdentityPubkey.SerializeCompressed())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user