2569b4d08a
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. |
||
---|---|---|
.. | ||
interface.go | ||
invoice_expiry_watcher_test.go | ||
invoice_expiry_watcher.go | ||
invoiceregistry_test.go | ||
invoiceregistry.go | ||
log.go | ||
resolution.go | ||
test_utils_test.go | ||
update.go |