Merge pull request #2717 from cfromknecht/send-payment-payreq

lnrpc+rpcserver: display payreq via listpayments
This commit is contained in:
Olaoluwa Osuntokun authored and GitHub committed 2019-05-31 17:09:04 -07:00
commit 4068e78af6
6 files changed
+535 -484

No files matched your search

+5 -1
View File
@@ -1584,6 +1584,10 @@ type LightningPayment struct {
// hop. If nil, any channel may be used.
OutgoingChannelID *uint64
// PaymentRequest is an optional payment request that this payment is
// attempting to complete.
PaymentRequest []byte
// TODO(roasbeef): add e2e message?
}
@@ -1611,7 +1615,7 @@ func (r *ChannelRouter) SendPayment(payment *LightningPayment) ([32]byte, *route
PaymentHash: payment.PaymentHash,
Value: payment.Amount,
CreationDate: time.Now(),
PaymentRequest: nil,
PaymentRequest: payment.PaymentRequest,
}
err = r.cfg.Control.InitPayment(payment.PaymentHash, info)