Skip to content

[Splicing] Tx negotiation during splicing#3736

Merged
wpaulino merged 9 commits intolightningdevkit:mainfrom
optout21:splice-dual-tx4
Jul 31, 2025
Merged

[Splicing] Tx negotiation during splicing#3736
wpaulino merged 9 commits intolightningdevkit:mainfrom
optout21:splice-dual-tx4

Conversation

@optout21
Copy link
Copy Markdown
Contributor

@optout21 optout21 commented Apr 15, 2025

Implementation of transaction negotiation during splicing.
Builds on 3407 and 3443.

  • No new phase, Funded(FundedChannel) is used throughout splicing
  • Both FundedChannel and PendingV2Channel can act as a transaction constructor
  • PendingV2Channel logic is put behind a trait -- FundingTxConstructorV2
  • A RenegotiatingScope is used to store extra state during splicing
  • FundingChannel can act as a FundingTxConstructorV2, using the state from RenegotiatingScope (if present)
  • Since both FundedChannel and FundingTxConstructor has context(), context accessors are extracted into a common base trait, ChannelContextProvider (it is also shared by InitialRemoteCommitmentReceiver).

(Also relevant: #3444)

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

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants