Browse Source

zpay32: rename to DefaultAssumedFinalCLTVDelta

This renames the paramter to clarify that this value is only used when
no CLTV value was decoded from the payment request
master
Conner Fromknecht 4 years ago
parent
commit
53ab22305d
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7
  1. 7
      zpay32/hophint.go
  2. 2
      zpay32/invoice.go

7
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

2
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

Loading…
Cancel
Save