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

Update scid when splice funding tx confirms #2941

Closed
wants to merge 1 commit into from

Conversation

remyers
Copy link
Contributor

@remyers remyers commented Nov 21, 2024

This PR addresses a problem found during interop testing of splices with CLN.

A zero conf splice should send splice_locked when it's funding tx is published, but should not update it's scid until the fund tx confirms. A normal splice should send splice_locked and update it's scid when the funding tx confirms.

Channel balances and max htlc amounts should not update until splice_locked is send to and receives from the remote peer.

A zero conf splice will send splice_locked when funding tx is published, but not update it's scid until the fund tx confirms.

Channel balances and max htlc amount will not update until local sends to and receives from it's remote peer splice_locked.
remyers added a commit to remyers/eclair that referenced this pull request Dec 12, 2024
- This test demonstrates that local channels update their capacity, but we can not test the remote node (carol) because the ChannelAnnouncement is ignored because it has a duplicate scid. After PR ACINQ#2941 we can fix this test.
remyers added a commit that referenced this pull request Dec 13, 2024
Fixes Issue #2437

When an external channel is spent, add it to the `spentChannels` list instead of immediately removing it from the graph.

RBF attempts can produce multiple spending txs in the mempool for the same channel.

The `spendChannels` list maps the txid of the spending tx to the scid of the spent channel.

When a channel announcement is validated with a funding tx on the `spentChannels` list, consider the new channel a splice of the corresponding spent channel.

A splice updates the graph edges to preserve balance estimate information in the graph.

If a spending tx from the `spentChannels` list is deeply buried before appearing in a valid channel announcement, remove the corresponding spent channel from the graph.

The integration test demonstrates that local channels update their capacity, but we can not test the remote node (carol) because the ChannelAnnouncements are ignored because it has a duplicate scid. After PR #2941 we can fix this test.
---------

Co-authored-by: t-bast <[email protected]>
@t-bast
Copy link
Member

t-bast commented Jan 3, 2025

Superseded by #2968

@t-bast t-bast closed this Jan 3, 2025
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