From eae45f9ad91ea167f4a723d19a7d77df75769ee3 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Fri, 13 Dec 2019 19:54:37 -0800 Subject: [PATCH] zpay32: use new DefaultInvoiceExpiry constant --- zpay32/invoice.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zpay32/invoice.go b/zpay32/invoice.go index 3afb4cda..1677fa8d 100644 --- a/zpay32/invoice.go +++ b/zpay32/invoice.go @@ -548,7 +548,7 @@ func (invoice *Invoice) Expiry() time.Duration { } // If no expiry is set for this invoice, default is 3600 seconds. - return 3600 * time.Second + return DefaultInvoiceExpiry } // MinFinalCLTVExpiry returns the minimum final CLTV expiry delta as specified