invoices/test: move payment address required global into test using it

This commit is contained in:
Carla Kirk-Cohen
2023-07-12 17:09:32 -04:00
parent d080d07a22
commit 94e434d2f1
2 changed files with 17 additions and 20 deletions

View File

@@ -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()