lnd.xprv/htlcswitch
Andrey Samokhvalov a5d90b9ad1 htlcswitch: fix last-mile settle stalling in concurrent multi-hop setting
This commit fixes an issue that would at times cause the htlcManager
which manages the link that’s the final hop to settle in an HTLC flow.
Previously, a case would arise wherein a set of HTLC’s were settled to,
but not properly committed to in the commitment transaction of the
remote node. This wasn’t an issue with HTLC’s which were added but
uncleared, as that batch was tracked independently.

In order to fix this issue, we now track pending HTLC settles
independently. This is a temporary fix, as has been noted in a TODO
within this commit.
2017-05-31 11:06:08 -07:00
..
circuit.go htlcswitch: recreate hlcswitch from scratch 2017-05-31 11:06:08 -07:00
interfaces.go htlcswitch: add channel link config 2017-05-31 11:06:08 -07:00
iterator.go htlcswitch: add real sphinx iterator 2017-05-31 11:06:08 -07:00
link_test.go htlcswitch: add usage of queue in channel link 2017-05-31 11:06:08 -07:00
link.go htlcswitch: fix last-mile settle stalling in concurrent multi-hop setting 2017-05-31 11:06:08 -07:00
log.go htlcswitch: recreate hlcswitch from scratch 2017-05-31 11:06:08 -07:00
mock.go htlcswitch: add channel link tests 2017-05-31 11:06:08 -07:00
packet.go htlcswitch: recreate hlcswitch from scratch 2017-05-31 11:06:08 -07:00
queue_test.go htlcswitch: add packet queue 2017-05-31 11:06:08 -07:00
queue.go htlcswitch: add packet queue 2017-05-31 11:06:08 -07:00
switch_test.go htlcswitch: recreate hlcswitch from scratch 2017-05-31 11:06:08 -07:00
switch.go htlcswitch: recreate hlcswitch from scratch 2017-05-31 11:06:08 -07:00
test_utils.go htlcswitch: add usage of queue in channel link 2017-05-31 11:06:08 -07:00