Save invoice destination

And save the node pubkey in the service to make it usable
This commit is contained in:
Michael Bumann
2022-01-20 15:40:32 +01:00
parent 7d6dc15b8c
commit 90a686677f
5 changed files with 48 additions and 26 deletions

View File

@@ -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())
}