diff --git a/zpay32/hophint.go b/zpay32/hophint.go index 25028628..067c8437 100644 --- a/zpay32/hophint.go +++ b/zpay32/hophint.go @@ -3,9 +3,10 @@ package zpay32 import "github.com/btcsuite/btcd/btcec" const ( - // DefaultFinalCLTVDelta is the default value to be used as the final - // CLTV delta for a route if one is unspecified. - DefaultFinalCLTVDelta = 9 + // DefaultAssumedFinalCLTVDelta is the default value to be used as the + // final CLTV delta for a route if one is unspecified in the payment + // request. + DefaultAssumedFinalCLTVDelta = 9 ) // HopHint is a routing hint that contains the minimum information of a channel diff --git a/zpay32/invoice.go b/zpay32/invoice.go index dbb991e6..8444e3ee 100644 --- a/zpay32/invoice.go +++ b/zpay32/invoice.go @@ -324,7 +324,7 @@ func (invoice *Invoice) MinFinalCLTVExpiry() uint64 { return *invoice.minFinalCLTVExpiry } - return DefaultFinalCLTVDelta + return DefaultAssumedFinalCLTVDelta } // validateInvoice does a sanity check of the provided Invoice, making sure it