multi: move FailureReason to payment package

This commit is contained in:
ziggie
2025-08-12 13:57:08 +02:00
parent d77b2f9c26
commit d138e23919
19 changed files with 134 additions and 140 deletions

View File

@@ -4,7 +4,6 @@ import (
"fmt"
"testing"
"github.com/lightningnetwork/lnd/channeldb"
"github.com/lightningnetwork/lnd/lntypes"
"github.com/stretchr/testify/require"
)
@@ -24,13 +23,13 @@ func TestDecidePaymentStatus(t *testing.T) {
}
// Create a test failure reason and get the pointer.
reason := channeldb.FailureReasonNoRoute
reason := FailureReasonNoRoute
failure := &reason
testCases := []struct {
name string
htlcs []HTLCAttempt
reason *channeldb.FailureReason
reason *FailureReason
expectedStatus PaymentStatus
expectedErr error
}{