mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
lightningd: note our complience on not forwarding an HTLC post deadline.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
c14b159166
commit
bdabb24734
@ -647,6 +647,16 @@ static bool peer_accepted_htlc(struct peer *peer,
|
||||
goto out;
|
||||
}
|
||||
|
||||
/* BOLT #2:
|
||||
*
|
||||
* A node MUST estimate a fulfillment deadline for each HTLC it is
|
||||
* attempting to fulfill. A node MUST fail (and not forward) an HTLC
|
||||
* whose fulfillment deadline is already past
|
||||
*/
|
||||
/* Our deadline is half the cltv_delta we insist on, so this check is
|
||||
* a subset of the cltv check done in handle_localpay and
|
||||
* forward_htlc. */
|
||||
|
||||
/* channeld tests this, so it should have set ss to zeroes. */
|
||||
op = parse_onionpacket(tmpctx, hin->onion_routing_packet,
|
||||
sizeof(hin->onion_routing_packet));
|
||||
|
Loading…
Reference in New Issue
Block a user