-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-write the spec to use CLTV instead of CSVs for liquidity ads. This does a number of wonderful things. First, it decouples us from option_anchor, which is returned to being optional again. Second, it allows us to have a static, lifetime value for the lease which doesn't need to be removed at lease end (it is automatically moot just by passing the required blockheight) Thirdly, we add a new 'second stage' transaction type for HTLC output clauses which pay out to the remote node. These are only added to the *lessor*'s commitment transactions, as we can simply add the required CLTV locks to HTLC transaction outputs in the lessor's commitment. There's no such affordance in the commitment transaction of the leassor, unfortuantely, in which case we must add them. As written, note that these live for the lifetime of the channel. We could optionally remove them upon request of the lessor at some point after the CLTV has passed. This is left as an exercise to the future spec writers.
- Loading branch information
Showing
1 changed file
with
134 additions
and
22 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