lnd.xprv/invoices
carla 2569b4d08a
multi: replace htlcResolution with an interface
This commit repalces the htlcResolution struct with an interface.
This interface is implemeted by failure, settle and accept resolution
structs. Only settles and fails are exported because the existing
code that handles htlc resolutions uses a nil resolution to indicate
that a htlc was accepted. The accept resolution is used internally
to report on the resolution result of the accepted htlc, but a nil
resolution is surfaced. Further refactoring of all the functions
that call NotifyExitHopHtlc to handle a htlc accept case (rather than
having a nil check) is required.
2020-02-06 19:41:36 +02:00
..
interface.go record: move CustomRecordSet 2019-12-12 00:12:19 +01:00
invoice_expiry_watcher_test.go invoices: fix slow startup with many expired invoices 2020-01-24 21:01:10 +01:00
invoice_expiry_watcher.go invoices: fix log messages 2020-02-03 15:12:55 +01:00
invoiceregistry_test.go multi: replace htlcResolution with an interface 2020-02-06 19:41:36 +02:00
invoiceregistry.go multi: replace htlcResolution with an interface 2020-02-06 19:41:36 +02:00
log.go invoices: create package 2019-01-07 23:04:05 +01:00
resolution.go multi: replace htlcResolution with an interface 2020-02-06 19:41:36 +02:00
test_utils_test.go channeldb: inject clock into database 2020-01-20 11:08:30 +01:00
update.go multi: replace htlcResolution with an interface 2020-02-06 19:41:36 +02:00