Skip to content

Implement PendingHTLCsRelayable Event to split acceptance/relay checks #680

Closed

Description

@ariard

Currently, we apply both BOLT-2 incoming channels settings checks and BOLT-4 relay checks at update_add_htlc reception. We should split relay checks and get incoming HTLC acceptance generate a Event::PendingHTLCsRelayable. This event could be consumed by process_pending_htlc_relayable and should generate a PendingHTLCsForwardable. In between any kind of client custom function can be implemented support for stricter relay policy, on-the-flight generated outgoing zero-conf channel, delayed relay, trampoline-style of routing, ...

See further #670 and http://gnusha.org/rust-bitcoin/.

Activity

  1. TheBlueMatt commented on Aug 28, 2020

    @TheBlueMatt
    Collaborator

    This could also allow live-rebalancing on the client's end, which would be cool.

  2. ariard commented on Sep 8, 2020

    @ariard
    Author

    Also fix current bug : #633 (comment)

  3. TheBlueMatt commented on Nov 12, 2020

    @TheBlueMatt
    Collaborator

    Note that the bug at #633 (comment) has been fixed in #690.

  4. ariard commented on Jul 5, 2021

    @ariard
    Author

    Might serve to address few timing attacks : #975 (comment)

  5. ariard commented on Jul 5, 2021

    @ariard
    Author

    Might serve as iptables for routing nodes : #975 (comment)

  6. ariard commented on Oct 19, 2021

    @ariard
    Author

    Maybe also addressing that at the same time : #1119 (comment)

  7. TheBlueMatt commented on Feb 16, 2022

    @TheBlueMatt
    Collaborator

    May need to rely on #1302

  8. added this to the 0.0.111 milestone on Jun 25, 2022
  9. TheBlueMatt commented on Aug 22, 2022

    @TheBlueMatt
    Collaborator

    Turns out we're not gonna rely on this for #1302, so there's no reason for this to have a very-soon milestone.

  10. modified the milestones: 0.0.111, 0.1.1 on Aug 22, 2022
  11. TheBlueMatt commented on Jul 7, 2025

    @TheBlueMatt
    Collaborator

    Enabled by the work in #1302.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions