4eb07e8288
In this commit, we add a new test to the switch: TestForwardingAsymmetricTimeLockPolicies. This test ensures that a link has two channels, one of which has a greater CLTV delta than the latter, that a payment will successfully be routed across the channels. Atm, the test fails (including the fix to hop payload generation included in the next commit). Atm, due to the way that we check forwarding policies, we'll reject this payment as we're attempting to enforce the policy of the incoming link (cltv delta of 7), instead of that of the outgoing link (cltv delta of 6). As a result, atm, the incoming link checks if (incoming_timeout - delta < outgoing_timeout). For the values in the test case: 112 - 7 < 106 -> 105 < 106, this check fails. The payload is proper, but the check itself should be applied at the outgoing hop. |
||
---|---|---|
.. | ||
hodl | ||
circuit_map.go | ||
circuit_test.go | ||
circuit.go | ||
decayedlog_test.go | ||
decayedlog.go | ||
failure.go | ||
interfaces.go | ||
iterator.go | ||
link_test.go | ||
link.go | ||
linkfailure.go | ||
log.go | ||
mailbox_test.go | ||
mailbox.go | ||
mock.go | ||
packet.go | ||
queue_test.go | ||
queue.go | ||
sequencer.go | ||
switch_test.go | ||
switch.go | ||
test_utils.go |