Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option_will_fund: liquidity ads #878

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Feb 13, 2024

  1. option_will_fund

    Draft of option_will_fund, to allow for liquidity ads
    niftynei committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    f0249b5 View commit details
    Browse the repository at this point in the history
  2. CSV -> CLTV

    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.
    niftynei committed Feb 13, 2024
    Configuration menu
    Copy the full SHA
    13930b2 View commit details
    Browse the repository at this point in the history