lnd.xprv/htlcswitch
Olaoluwa Osuntokun cd10dc712f
htlcswitch: implement full HTLC onion payload validation logic
This commit puts a missing piece in place by properly parsing and
validating the per hop payload received in incoming HTLC’s. When
forwarding HTLC’s we ensure that the payload recovered is consistent
with our current forwarding policy. Additionally, when we’re the “exit
node” for a payment, then we ensure that the HTLC extended matches up
with our expectation w.r.t the payment amount to be received.
2017-06-16 23:58:08 +02:00
..
circuit.go htlcswitch: change over all internal indexes to use short channel ID's 2017-06-16 23:49:46 +02:00
interfaces.go htlcswitch: eliminate HopID in favor of a [33]byte for compressed pub keys 2017-06-16 23:38:52 +02:00
iterator.go htlcswitch: eliminate HopID in favor of a [33]byte for compressed pub keys 2017-06-16 23:38:52 +02:00
link_test.go htlcswitch: add usage of queue in channel link 2017-05-31 11:06:08 -07:00
link.go htlcswitch: implement full HTLC onion payload validation logic 2017-06-16 23:58:08 +02:00
log.go htlcswitch: recreate hlcswitch from scratch 2017-05-31 11:06:08 -07:00
mock.go htlcswitch: add channel link tests 2017-05-31 11:06:08 -07:00
packet.go htlcswitch: change over all internal indexes to use short channel ID's 2017-06-16 23:49:46 +02:00
queue_test.go htlcswitch: add packet queue 2017-05-31 11:06:08 -07:00
queue.go htlcswitch: change over all internal indexes to use short channel ID's 2017-06-16 23:49:46 +02:00
switch_test.go htlcswitch: recreate hlcswitch from scratch 2017-05-31 11:06:08 -07:00
switch.go htlcswitch: change over all internal indexes to use short channel ID's 2017-06-16 23:49:46 +02:00
test_utils.go htlcswitch: add usage of queue in channel link 2017-05-31 11:06:08 -07:00