mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-06 01:18:17 +02:00
routing: Ensure to not fail a payment twice
This commit is contained in:
@@ -282,6 +282,9 @@ func (p *controlTower) FetchPayment(paymentHash lntypes.Hash) (
|
||||
// reason the payment failed. After invoking this method, InitPayment should
|
||||
// return nil on its next call for this payment hash, allowing the switch to
|
||||
// make a subsequent payment.
|
||||
//
|
||||
// NOTE: This method will overwrite the failure reason if the payment is already
|
||||
// failed.
|
||||
func (p *controlTower) FailPayment(paymentHash lntypes.Hash,
|
||||
reason channeldb.FailureReason) error {
|
||||
|
||||
|
Reference in New Issue
Block a user