lnd.xprv/htlcswitch
Olaoluwa Osuntokun ee1acb1610
htlcswitch: reject HTLC's which expire too soon
This commit implements a missing policy within the current ChannelLink
interface. If an HTLC arrives that is too close to the current block
height, then we’ll reject it. As otherwise, it may be possible for us
to lose an on-chain claim if they HTLC expires already or expires
before we’re able to get a commitment transaction in the chain.

As the exit node, we have a grace period that governs out decision. As
an intermediate node, we ensure that the HTLC isn’t close to expiry on
our outgoing link end if we forward it.
2017-08-02 21:10:43 -07:00
..
circuit.go lnwire+htlcswitch: minor grammatical, formatting fixes after error PR 2017-07-14 20:08:37 -07:00
failure.go lnwire+htlcswitch: minor grammatical, formatting fixes after error PR 2017-07-14 20:08:37 -07:00
interfaces.go peer+server+htlcswitch: add reason to disconnnect function 2017-07-14 19:08:04 -07:00
iterator.go lnwire+htlcswitch: minor grammatical, formatting fixes after error PR 2017-07-14 20:08:37 -07:00
link_test.go hltcswitch: increase timeout for bi-di payment test due to travis slowness 2017-08-01 12:53:17 -07:00
link.go htlcswitch: reject HTLC's which expire too soon 2017-08-02 21:10:43 -07:00
log.go lnd: remove seelog logger 2017-06-25 14:19:56 +01:00
mock.go htlcswitch: update tests utilities to be aware of new commitment design 2017-07-30 17:51:20 -07:00
packet.go lnwire+htlcswitch: minor grammatical, formatting fixes after error PR 2017-07-14 20:08:37 -07:00
queue_test.go htlcswitch: run all unit tests in parallel 2017-06-17 00:41:47 +02: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 hltcswitch: increase timeout for bi-di payment test due to travis slowness 2017-08-01 12:53:17 -07:00
switch.go htlcswitch: Fix typo in logging 2017-07-31 21:45:15 -07:00
test_utils.go hltcswitch: increase timeout for bi-di payment test due to travis slowness 2017-08-01 12:53:17 -07:00