lnd.xprv/htlcswitch
Andrey Samokhvalov bea9c0b52b htlcswitch: make stop of the link not in the goroutine
In order to be able to properly restart switch several times we should
have the sequential process of channel link stop. In other words if we
stopped the switch we should be sure that all channel links have been
stopped too. Addition of the goroutine during the force close was added
because of the deadlock:

Trace:
1. link:force_close_notification
2. link:wipe_channel
3. peer:switch_remove_link
4. switch:stop_link
5. link:wait <-- deadlock
2017-11-09 16:38:57 -08:00
..
circuit.go Htlcswitch: rename Deobfuscator and Obfuscator interfaces 2017-10-10 22:19:19 -07:00
failure.go htlcswitch: add new ExtraMsg field to ForwardingError 2017-10-16 18:15:51 -07:00
interfaces.go Htlcswitch: switch all accounting and forwarding decisions to use mSAT's 2017-08-22 00:53:04 -07:00
iterator.go Htlcswitch: rename Deobfuscator and Obfuscator interfaces 2017-10-10 22:19:19 -07:00
link_test.go htlcswicth.test: add 'future' payment response 2017-11-09 16:38:57 -08:00
link.go htlcswitch: make stop of the link not in the goroutine 2017-11-09 16:38:57 -08:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
mock.go htlcswitch.test: add server error channel to concurrent access panic 2017-11-09 16:38:57 -08:00
packet.go Htlcswitch: rename Deobfuscator and Obfuscator interfaces 2017-10-10 22:19:19 -07:00
queue_test.go htlcswitch: expand TestWaitingQueueThreadSafety to assert proper queue length 2017-09-25 16:55:18 -07:00
queue.go htlcswitch: expand TestWaitingQueueThreadSafety to assert proper queue length 2017-09-25 16:55:18 -07:00
switch_test.go htlcswitch.test: add server error channel to concurrent access panic 2017-11-09 16:38:57 -08:00
switch.go htlcswitch: make stop of the link not in the goroutine 2017-11-09 16:38:57 -08:00
test_utils.go htlcswicth.test: add 'future' payment response 2017-11-09 16:38:57 -08:00