lnd.xprv/lnrpc/routerrpc
carla 102f9b003f
htlcswitch: add ClearTextError interface
This commit adds a ClearTextError interface
which is implemented by non-opaque errors that
we know the underlying wire failure message for.
This interface is implemented by ForwardingErrors,
because we can fully decrypt the onion blob to
obtain the underlying failure reason. This interface
will also be implemented by errors which originate
at our node in following commits, because we know
the failure reason when we fail the htlc.

The lnwire interface is un-embedded in the
ForwardingError struct in favour of implementing
this interface. This change is made to protect
against accidental passing of a ForwardingError
to the wire, where the embedded FailureMessage
interface will present as wire failure but
will not serialize properly.
2020-01-14 15:07:41 +02:00
..
config_active.go routing+routerrpc: improve prob. estimation for untried connections 2019-10-22 15:52:38 +02:00
config_default.go routing+routerrpc: improve prob. estimation for untried connections 2019-10-22 15:52:38 +02:00
config.go routing+routerrpc: improve prob. estimation for untried connections 2019-10-22 15:52:38 +02:00
driver.go lnrpc/routerrpc: add config, implement full RouterServer 2019-02-20 16:10:39 -08:00
log.go multi: remove dead code 2019-09-10 17:21:59 +02:00
router_backend_test.go multi: do not use tlv.Record outside wire format handling 2019-12-12 00:14:58 +01:00
router_backend.go routerrpc: allow dest_features graph fallback 2019-12-19 16:28:57 -08:00
router_server.go htlcswitch: add ClearTextError interface 2020-01-14 15:07:41 +02:00
router.pb.go routerrpc: add MppTimeout code to failures 2019-12-20 13:02:19 +02:00
router.proto routerrpc: add MppTimeout code to failures 2019-12-20 13:02:19 +02:00