Skip to content

Commit 1c2cdc1

Browse files
authored
Merge pull request #838 from lightninglabs/payinvoice-fix
[custom channels]: plumb payinvoice CLI arg
2 parents c06d8ce + 1be4ac9 commit 1c2cdc1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmd/litcli/ln.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,12 @@ func payInvoice(ctx *cli.Context) error {
433433
var assetID asset.ID
434434
copy(assetID[:], assetIDBytes)
435435

436+
rfqPeerKey, err := hex.DecodeString(ctx.String(rfqPeerPubKeyFlag.Name))
437+
if err != nil {
438+
return fmt.Errorf("unable to decode RFQ peer public key: "+
439+
"%w", err)
440+
}
441+
436442
tapdConn, cleanup, err := connectTapdClient(ctx)
437443
if err != nil {
438444
return fmt.Errorf("error creating tapd connection: %w", err)
@@ -457,6 +463,7 @@ func payInvoice(ctx *cli.Context) error {
457463
stream, err := tchrpcClient.SendPayment(
458464
ctx, &tchrpc.SendPaymentRequest{
459465
AssetId: assetIDBytes,
466+
PeerPubkey: rfqPeerKey,
460467
PaymentRequest: req,
461468
},
462469
)

0 commit comments

Comments
 (0)