mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
84fd911b47
Fixes new lint errors caught by the latest version.
15 lines
770 B
Go
15 lines
770 B
Go
package lncfg
|
|
|
|
// DefaultHoldInvoiceExpiryDelta defines the number of blocks before the expiry
|
|
// height of a hold invoice's htlc that lnd will automatically cancel the
|
|
// invoice to prevent the channel from force closing. This value *must* be
|
|
// greater than DefaultIncomingBroadcastDelta to prevent force closes.
|
|
const DefaultHoldInvoiceExpiryDelta = DefaultIncomingBroadcastDelta + 2
|
|
|
|
// Invoices holds the configuration options for invoices.
|
|
//
|
|
//nolint:lll
|
|
type Invoices struct {
|
|
HoldExpiryDelta uint32 `long:"holdexpirydelta" description:"The number of blocks before a hold invoice's htlc expires that the invoice should be canceled to prevent a force close. Force closes will not be prevented if this value is not greater than DefaultIncomingBroadcastDelta."`
|
|
}
|