Versions in this module Expand all Collapse all v1 v1.0.0 May 10, 2019 Changes in this version + var DebugHash = DebugPre.Hash() + var DebugPre = lntypes.MakePreimage(bytes.Repeat([]byte{ ... }, 32)) + func DisableLog() + func UseLogger(logger btclog.Logger) + type HodlEvent struct + Hash lntypes.Hash + Preimage *lntypes.Preimage + type InvoiceRegistry struct + func NewRegistry(cdb *channeldb.DB, decodeFinalCltvExpiry func(invoice string) (uint32, error)) *InvoiceRegistry + func (i *InvoiceRegistry) AddDebugInvoice(amt btcutil.Amount, preimage lntypes.Preimage) + func (i *InvoiceRegistry) AddInvoice(invoice *channeldb.Invoice, paymentHash lntypes.Hash) (uint64, error) + func (i *InvoiceRegistry) CancelInvoice(payHash lntypes.Hash) error + func (i *InvoiceRegistry) HodlUnsubscribeAll(subscriber chan<- interface{}) + func (i *InvoiceRegistry) LookupInvoice(rHash lntypes.Hash) (channeldb.Invoice, uint32, error) + func (i *InvoiceRegistry) NotifyExitHopHtlc(rHash lntypes.Hash, amtPaid lnwire.MilliSatoshi, hodlChan chan<- interface{}) (*HodlEvent, error) + func (i *InvoiceRegistry) SettleHodlInvoice(preimage lntypes.Preimage) error + func (i *InvoiceRegistry) Start() error + func (i *InvoiceRegistry) Stop() + func (i *InvoiceRegistry) SubscribeNotifications(addIndex, settleIndex uint64) *InvoiceSubscription + func (i *InvoiceRegistry) SubscribeSingleInvoice(hash lntypes.Hash) *SingleInvoiceSubscription + type InvoiceSubscription struct + NewInvoices chan *channeldb.Invoice + SettledInvoices chan *channeldb.Invoice + func (i *InvoiceSubscription) Cancel() + type SingleInvoiceSubscription struct + Updates chan *channeldb.Invoice + func (i *SingleInvoiceSubscription) Cancel()