github.com/decred/dcrlnd@v0.7.6/lncfg/invoices.go (about)

     1  package lncfg
     2  
     3  // DefaultHoldInvoiceExpiryDelta defines the number of blocks before the expiry
     4  // height of a hold invoice's htlc that lnd will automatically cancel the
     5  // invoice to prevent the channel from force closing. This value *must* be
     6  // greater than DefaultIncomingBroadcastDelta to prevent force closes.
     7  const DefaultHoldInvoiceExpiryDelta = DefaultIncomingBroadcastDelta + 2
     8  
     9  // Invoices holds the configuration options for invoices.
    10  type Invoices struct {
    11  	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."`
    12  }