8000 Add tlv to require confirmed inputs for dual funding by t-bast · Pull Request #2461 · ACINQ/eclair · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add tlv to require confirmed inputs for dual funding #2461

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

Merged
merged 4 commits into from
Oct 19, 2022

Conversation

t-bast
Copy link
Member
@t-bast t-bast commented Oct 19, 2022

We add a tlv to open_channel2 and accept_channel2 to require our peer to only use confirmed inputs, as proposed here. Using only confirmed inputs ensures that we don't end up paying the fees of one of our peer's unconfirmed ancestors.

This can be configured at two levels:

  • globally using eclair.conf
  • on a per-channel basis by overriding the default value in Peer.OpenChannel

This PR contains a breaking change in the codecs: since dual funding isn't released yet, it's ok to make such a breaking change now: this is why I'd like to integrate this PR now, even though the final value of the TLV isn't specified yet. Updating the TLV can be done later without breaking compatibility.

This PR is probably best reviewed commit-by-commit.

When that tlv is specified, the peer must use confirmed inputs, otherwise
the funding attempt will be rejected. This ensures that we won't pay the
fees for a low-feerate ancestor.
This can be configured at two levels:

- globally using `eclair.conf`
- on a per-channel basis by overriding the default in `Peer.OpenChannel`
When our peer requires us to use only confirmed inputs, we filter
unconfirmed inputs as unusable.
@t-bast t-bast requested a review from pm47 October 19, 2022 12:06
@t-bast t-bast merged commit 1f32652 into master Oct 19, 2022
@t-bast t-bast deleted the dual-funding-confirmed-inputs-tlv branch October 19, 2022 15:25
t-bast added a commit that referenced this pull request Sep 5, 2024
Similar to #2461 but for the non-initiator of a channel open.
t-bast added a commit that referenced this pull request Sep 6, 2024
Similar to #2461 but for the non-initiator of a channel open.
t-bast added a commit that referenced this pull request Sep 9, 2024
Similar to #2461 but for the non-initiator of a channel open.
t-bast added a commit that referenced this pull request Sep 12, 2024
Similar to #2461 but for the non-initiator of a channel open.
t-bast added a commit that referenced this pull request Sep 13, 2024
Similar to #2461 but for the non-initiator of a channel open.
t-bast added a commit that referenced this pull request Sep 16, 2024
Similar to #2461 but for the non-initiator of a channel open.
t-bast added a commit that referenced this pull request Sep 24, 2024
Similar to #2461 but for the non-initiator of a channel open.
t-bast added a commit that referenced this pull request Sep 24, 2024
Similar to #2461 but for the non-initiator of a channel open.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0