lnd.xprv/htlcswitch
Olaoluwa Osuntokun ca613a625f
htlcswitch: handleLocalDispatch can now handle locally sourced resolutions
In this commit, we update the failure case within handleLocalDispatch
to handle locally sourced resolutions. This is the case that we send a
payment out, but before it can even get past the first hop, we need to
go to chain (may have been a cascading failure). Once the HTLC is fully
resolved, we’ll send back a resolution message, however, that message
doesn’t have a failure reason populated. To properly handle this, we’ll
send back a permanent channel failure to the router.
2018-01-22 19:19:56 -08:00
..
circuit_test.go htlcswitch: Rename htlcPacket fields for clarity. 2017-12-14 17:53:58 -08:00
circuit.go htlcswitch: Change circuit map keys to (channel ID, HTLC ID). 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_test.go htlcswitch: update to use new event stream from the chainWatcher 2018-01-22 19:19:51 -08:00
link.go htlcswitch: update to use new event stream from the chainWatcher 2018-01-22 19:19:51 -08:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
mailbox_test.go multi: fix several typos in godoc comments 2017-12-17 18:40:05 -08:00
mailbox.go htlcswitch: add new ProcessContractResolution method 2018-01-22 19:19:38 -08:00
mock.go htlcswitch: update tests to account for new API changes 2018-01-22 19:19:41 -08:00
packet.go htlcswitch: add new ProcessContractResolution method 2018-01-22 19:19:38 -08:00
queue_test.go htlcswitch: Remove obsolete fields from htlcPacket. 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
switch_test.go htlcswitch: Fix failure error handling on outgoing adds. 2017-12-14 17:53:58 -08:00
switch.go htlcswitch: handleLocalDispatch can now handle locally sourced resolutions 2018-01-22 19:19:56 -08:00
test_utils.go htlcswitch: update to use new event stream from the chainWatcher 2018-01-22 19:19:51 -08:00