lnd/htlcswitch
Olaoluwa Osuntokun 0d4ee08372
htlcswitch: asynchronously handle channel close requests
This commit modifies how the htlcswitch handles close requests.
Previously it could be the case that a new channel was added, but at
the same time a channel was requested to be closed. This would result
in a circular waiting dependency: the peer contacts the switch, who
tries to contact the peer.

We eliminate this possibility by ensuring that the switch handles all
close requests asynchronously. With this, the switch won't block
indefinitely in the scenario described above.
2017-08-03 16:59:16 -07:00
..
circuit.go lnwire+htlcswitch: minor grammatical, formatting fixes after error PR 2017-07-14 20:08:37 -07:00
failure.go lnwire+htlcswitch: minor grammatical, formatting fixes after error PR 2017-07-14 20:08:37 -07:00
interfaces.go peer+server+htlcswitch: add reason to disconnnect function 2017-07-14 19:08:04 -07:00
iterator.go lnwire+htlcswitch: minor grammatical, formatting fixes after error PR 2017-07-14 20:08:37 -07:00
link.go htlcswitch: update tests to account for new HTLC expiry observence 2017-08-02 21:11:40 -07:00
link_test.go htlcswitch: expect proper error in TestChannelLinkExpiryTooSoonMidNode 2017-08-02 21:30:32 -07:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
mock.go htlcswitch: update tests utilities to be aware of new commitment design 2017-07-30 17:51:20 -07:00
packet.go lnwire+htlcswitch: minor grammatical, formatting fixes after error PR 2017-07-14 20:08:37 -07:00
queue.go htlcswitch: change over all internal indexes to use short channel ID's 2017-06-16 23:49:46 +02:00
queue_test.go htlcswitch: run all unit tests in parallel 2017-06-17 00:41:47 +02:00
switch.go htlcswitch: asynchronously handle channel close requests 2017-08-03 16:59:16 -07:00
switch_test.go hltcswitch: increase timeout for bi-di payment test due to travis slowness 2017-08-01 12:53:17 -07:00
test_utils.go htlcswitch: update tests to account for new HTLC expiry observence 2017-08-02 21:11:40 -07:00