lnd/htlcswitch
Olaoluwa Osuntokun 65c03c98d0
htlcswitch: always return an instance of ForwardingError from handleLocalDispatch
This commit modifies the errors that we return within the
handleLocalDispatch method. Rather than returning a regular error, or
simply the matching error code in some instances, we now _always_
return an instance of ForwardingError. This will allow the router to
make more intelligent decisions w.r.t routing HTLC’s as with this
information it will now be able to differentiate errors that occur
within the switch (before sending out the HTLC), from errors that occur
within the HTLC route itself.
2017-10-16 18:42:16 -07: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 htlcswitch: update tests to expect new ForwardingError type 2017-10-10 22:19:19 -07:00
link.go Htlcswitch: rename Deobfuscator and Obfuscator interfaces 2017-10-10 22:19:19 -07:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
mock.go Htlcswitch: rename Deobfuscator and Obfuscator interfaces 2017-10-10 22:19:19 -07: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: rename Deobfuscator and Obfuscator interfaces 2017-10-10 22:19:19 -07:00
switch.go htlcswitch: always return an instance of ForwardingError from handleLocalDispatch 2017-10-16 18:42:16 -07:00
test_utils.go Htlcswitch: rename Deobfuscator and Obfuscator interfaces 2017-10-10 22:19:19 -07:00