multi: move FailureReason to payment package

This commit is contained in:
ziggie committed 2025-08-14 19:53:18 +02:00
1 parent d77b2f9c26
commit d138e23919
19 files changed
+134 -140

No files matched your search

+1 -3
View File
@@ -2,8 +2,6 @@ package paymentsdb
import (
"fmt"
"github.com/lightningnetwork/lnd/channeldb"
)
// PaymentStatus represent current status of payment.
@@ -173,7 +171,7 @@ func (ps PaymentStatus) updatable() error {
// failed` is false, this indicates all the payment's HTLCs have occurred a
// temporarily failure and the payment is still in-flight.
func decidePaymentStatus(htlcs []HTLCAttempt,
reason *channeldb.FailureReason) (PaymentStatus, error) {
reason *FailureReason) (PaymentStatus, error) {
var (
inflight bool