invoices/test: move payment address required global into test using it
This commit is contained in:
2 files changed
+17
-20
No files matched your search
@@ -131,24 +131,6 @@ var (
|
||||
testInvoiceCreationDate = testTime
|
||||
)
|
||||
|
||||
var (
|
||||
testPayAddrReqInvoice = &invpkg.Invoice{
|
||||
Terms: invpkg.ContractTerm{
|
||||
PaymentPreimage: &testInvoicePreimage,
|
||||
Value: testInvoiceAmount,
|
||||
Expiry: time.Hour,
|
||||
Features: lnwire.NewFeatureVector(
|
||||
lnwire.NewRawFeatureVector(
|
||||
lnwire.TLVOnionPayloadOptional,
|
||||
lnwire.PaymentAddrRequired,
|
||||
),
|
||||
lnwire.Features,
|
||||
),
|
||||
},
|
||||
CreationDate: testInvoiceCreationDate,
|
||||
}
|
||||
)
|
||||
|
||||
func newTestChannelDB(t *testing.T, clock clock.Clock) (*channeldb.DB, error) {
|
||||
t.Helper()
|
||||
|
||||
|
||||
Reference in new issue
Block a user