0d4ee08372
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. |
||
---|---|---|
.. | ||
circuit.go | ||
failure.go | ||
interfaces.go | ||
iterator.go | ||
link_test.go | ||
link.go | ||
log.go | ||
mock.go | ||
packet.go | ||
queue_test.go | ||
queue.go | ||
switch_test.go | ||
switch.go | ||
test_utils.go |