forked from lightning/bolts
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BOLT #2: Swap cltv_expiry_delta values on open/accept for channel.
There's a mistake in the spec, where we were using the outgoing side of a channel to control the CTLV delta. But it's the receipient which is vulnerable if it's too low, so the recipient should set it. This exchanges values at channel open, and relies on the counterparty to advertize it correctly in its `channel_update` messages. There's another patch which changes the "Risks With HTLC Timeouts" section to cover the setting of cltv_expiry_delta in detail, but that's not ready yet. Signed-off-by: Rusty Russell <[email protected]>
- Loading branch information
1 parent
76761b8
commit 7d49850
Showing
2 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters