multi: make GetPaymentResult take payment hash
Used for logging in the switch, and when we remove the pending payments, only the router will have the hash stored across restarts.
This commit is contained in:
7 files changed
+15
-13
No files matched your search
@@ -95,7 +95,7 @@ func (p *paymentLifecycle) resumePayment() ([32]byte, *route.Route, error) {
|
||||
// Now ask the switch to return the result of the payment when
|
||||
// available.
|
||||
resultChan, err := p.router.cfg.Payer.GetPaymentResult(
|
||||
p.attempt.PaymentID, errorDecryptor,
|
||||
p.attempt.PaymentID, p.payment.PaymentHash, errorDecryptor,
|
||||
)
|
||||
switch {
|
||||
|
||||
|
||||
Reference in new issue
Block a user