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

Add the ability to hold HTLCs before forwarding (FEAT 52/53) #989

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

Commits on May 13, 2022

  1. Configuration menu
    Copy the full SHA
    07f184b View commit details
    Browse the repository at this point in the history
  2. Add the ability to hold HTLCs before forwarding

    This is an incredibly simple first start towards the protocol
    sketched out at [1]. It adds the ability to have a counteraprty
    hold an HTLC before forwarding it.
    
    Specifically, the HTLC sender sets a required TLV on the
    `update_add_htlc` message and sends an onion message to the final
    recipient. From there, the final recipient uses the included
    `reply_path` to notify the sender's counterparty that they're
    online and ready to receive the HTLC.
    
    In order to fully flesh out the protocol as sketched, we'll need
    to add an onion message mailbox service (which should be as simple
    as a new feature bit), add PTLCs, and extensions to BOLT 12 to
    allow signaling that the final recipient is often-offline. While
    we could add such signaling to BOLT 11, there's not a whole lot of
    reason to - if the recipient is able to provide an invoice,
    they're currently online!
    
    [1] https://lists.linuxfoundation.org/pipermail/lightning-dev/2021-October/003307.html
    TheBlueMatt committed May 13, 2022
    Configuration menu
    Copy the full SHA
    61a3d90 View commit details
    Browse the repository at this point in the history