lnd.xprv/htlcswitch
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
..
hodl htlcswitch/hodl: switch from debug tag to dev 2018-10-05 13:04:45 +09:00
hop record: move CustomRecordSet 2019-12-12 00:12:19 +01:00
circuit_map.go htlcswitch: move hop iterator into htlcswitch/hop package 2019-09-05 15:30:31 +02:00
circuit_test.go multi: remove dead code 2019-09-10 17:21:59 +02:00
circuit.go htlcswitch: move hop iterator into htlcswitch/hop package 2019-09-05 15:30:31 +02:00
decayedlog_test.go peer+lnpeer: add new methods to expose local+global features for lnpeer interface 2019-09-25 18:26:01 -07:00
decayedlog.go multi: fix dropped errors 2019-09-13 09:50:38 +02:00
failure_detail.go htlcswitch: add CheckCircularForward to handlePacketForward 2020-01-30 10:13:40 +02:00
failure.go htlcswitch: remove extramsg string from ForwardingError 2020-01-14 15:23:11 +02:00
interfaces.go multi: replace htlcResolution with an interface 2020-02-06 19:41:36 +02:00
link_isolated_test.go htlcswitch/test: add test cases that triggers empty commit sig 2019-11-06 09:21:21 +01:00
link_test.go htlcswitch/test: replace mock server delta with constant 2020-01-30 10:02:44 +02:00
link.go multi: replace htlcResolution with an interface 2020-02-06 19:41:36 +02:00
linkfailure.go watchtower+htlcswitch: update client tower logic to recognize safu commitments 2019-09-25 18:25:55 -07:00
log.go htlcswitch/hop: fix logging 2019-09-09 13:52:35 +02:00
mailbox_test.go htlcswitch/mailbox_test: add orchestrator pending/live test 2018-05-09 16:07:52 -07:00
mailbox.go multi: remove dead code 2019-09-10 17:21:59 +02:00
mock.go multi: replace htlcResolution with an interface 2020-02-06 19:41:36 +02:00
packet.go multi: remove dead code 2019-09-10 17:21:59 +02:00
payment_result_test.go routing: Fix dropped errors in tests. 2019-09-13 06:28:05 +00:00
payment_result.go multi: fix canceled spelling 2019-10-03 17:27:36 +02:00
queue_test.go htlcswitch: Remove obsolete fields from htlcPacket. 2017-12-14 17:53:58 -08:00
queue.go htlcswitch: ensure the packet queue exits on stop 2018-06-08 13:51:37 -07:00
sequencer.go multi: switch from bolt packge to bbolt package for all imports 2018-11-29 20:33:49 -08:00
switch_test.go htlcswitch: add CheckCircularForward to handlePacketForward 2020-01-30 10:13:40 +02:00
switch.go htlcswitch: add CheckCircularForward to handlePacketForward 2020-01-30 10:13:40 +02:00
test_utils.go lnwallet: use channel type to derive keys 2020-01-06 12:08:05 +01:00