lnd/htlcswitch
Olaoluwa Osuntokun 912366ada5
htlcswitch: fix notifier goroutine leak by cancelling epoch when htlcManager exits
Before this commit, if the htlcManager unexpectedly exited (due to a
protocol error, etc), the underlying block epoch notification intent
that was created for it would never be cancelled. This would result in
tens, or hundreds of goroutine leaks as the client would never consume
those notifications.

To fix this, we move cancellation of the block epoch intent from the
Stop() method of the channel link, to the defer statement at the top of
the htlcManager.
2018-01-08 19:50:24 -08:00
..
circuit.go htlcswitch: Change circuit map keys to (channel ID, HTLC ID). 2017-12-14 17:53:58 -08:00
circuit_test.go htlcswitch: Rename htlcPacket fields for clarity. 2017-12-14 17:53:58 -08:00
failure.go htlcswitch: add new ExtraMsg field to ForwardingError 2017-10-16 18:15:51 -07:00
interfaces.go htlcswitch: add new method to the ChannelLink interface, EligibleToForward 2017-12-06 16:42:57 -08:00
iterator.go htlcswitch: ensure onion related errors always have the BadOnion bit set 2018-01-08 19:50:21 -08:00
link.go htlcswitch: fix notifier goroutine leak by cancelling epoch when htlcManager exits 2018-01-08 19:50:24 -08:00
link_test.go htlcswitch: reject duplicate payments to same invoice 2018-01-04 14:23:37 -06:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
mailbox.go htlcswitch: add new mailBox abstraction to the package 2017-11-10 19:51:01 -08:00
mailbox_test.go multi: fix several typos in godoc comments 2017-12-17 18:40:05 -08:00
mock.go htlcswitch: print rhash in error messages of mockInvoiceRegistry 2018-01-08 19:50:23 -08:00
packet.go htlcswitch: Fix failure error handling on outgoing adds. 2017-12-14 17:53:58 -08:00
queue.go htlcswitch: fix alignment of the packetQueue's fields for 32-bit systems (#507) 2017-12-22 16:32:11 +01:00
queue_test.go htlcswitch: Remove obsolete fields from htlcPacket. 2017-12-14 17:53:58 -08:00
switch.go htlcswitch: Fix failure error handling on outgoing adds. 2017-12-14 17:53:58 -08:00
switch_test.go htlcswitch: Fix failure error handling on outgoing adds. 2017-12-14 17:53:58 -08:00
test_utils.go lnwallet: don't use persistent pointer to funding tx within channel state machine 2017-12-22 19:26:35 +01:00