Skip to content

Implement first steps of the dual funding flow#2247

Merged
t-bast merged 4 commits into
masterfrom
dual-funding-open-accept
Aug 9, 2022
Merged

Implement first steps of the dual funding flow#2247
t-bast merged 4 commits into
masterfrom
dual-funding-open-accept

Conversation

@t-bast
Copy link
Copy Markdown
Member

@t-bast t-bast commented Apr 27, 2022

We implement the first step of the dual funding protocol: exchanging open_channel2 and accept_channel2.
We currently stop after exchanging these two messages.
Future commits will add the interactive-tx protocol used to build the funding transaction.

Copy link
Copy Markdown
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a first thought, I'll review the rest tomorrow

@pm47 pm47 self-requested a review May 19, 2022 08:43
@t-bast t-bast force-pushed the dual-funding-open-accept branch from 5fdf21c to 0adf29e Compare May 19, 2022 09:24
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 19, 2022

Codecov Report

Merging #2247 (80ae12f) into master (af79f44) will increase coverage by 0.07%.
The diff coverage is 94.57%.

@@            Coverage Diff             @@
##           master    #2247      +/-   ##
==========================================
+ Coverage   84.71%   84.78%   +0.07%     
==========================================
  Files         194      195       +1     
  Lines       14632    14813     +181     
  Branches      621      601      -20     
==========================================
+ Hits        12395    12559     +164     
- Misses       2237     2254      +17     
Impacted Files Coverage Δ
...inq/eclair/channel/fsm/ChannelOpenDualFunded.scala 91.37% <91.37%> (ø)
...-core/src/main/scala/fr/acinq/eclair/io/Peer.scala 88.04% <94.33%> (-1.52%) ⬇️
...c/main/scala/fr/acinq/eclair/channel/Helpers.scala 95.28% <97.50%> (+0.25%) ⬆️
...r-core/src/main/scala/fr/acinq/eclair/Eclair.scala 51.09% <100.00%> (-0.27%) ⬇️
...in/scala/fr/acinq/eclair/channel/ChannelData.scala 100.00% <100.00%> (ø)
...in/scala/fr/acinq/eclair/channel/fsm/Channel.scala 87.78% <100.00%> (-0.19%) ⬇️
...q/eclair/channel/fsm/ChannelOpenSingleFunder.scala 92.30% <100.00%> (+0.92%) ⬆️
...cinq/eclair/channel/publish/MempoolTxMonitor.scala 88.23% <0.00%> (-2.36%) ⬇️
...cala/fr/acinq/eclair/payment/relay/NodeRelay.scala 95.93% <0.00%> (-1.63%) ⬇️
... and 2 more

Comment thread eclair-core/src/main/scala/fr/acinq/eclair/channel/ChannelData.scala Outdated
Comment thread eclair-core/src/main/scala/fr/acinq/eclair/channel/ChannelFeatures.scala Outdated
Comment thread eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala Outdated
Comment thread eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala Outdated
Comment thread eclair-core/src/main/scala/fr/acinq/eclair/io/Peer.scala Outdated
Comment thread eclair-core/src/main/scala/fr/acinq/eclair/io/Peer.scala Outdated
Comment thread eclair-core/src/main/scala/fr/acinq/eclair/channel/Helpers.scala
@t-bast t-bast force-pushed the dual-funding-open-accept branch from 3a0d235 to 0065a1a Compare June 6, 2022 05:35
@t-bast
Copy link
Copy Markdown
Member Author

t-bast commented Jun 6, 2022

Rebased to fix conflicts with #2286

@t-bast t-bast force-pushed the dual-funding-open-accept branch from 0065a1a to 2e766f4 Compare June 15, 2022 13:56
@t-bast
Copy link
Copy Markdown
Member Author

t-bast commented Jun 15, 2022

Rebased to fix conflicts with #2224, I had to squash commits otherwise the rebase was too complex/risky.

@t-bast t-bast force-pushed the dual-funding-open-accept branch 2 times, most recently from 80ae12f to be4bf6a Compare July 1, 2022 14:20
@pm47
Copy link
Copy Markdown
Member

pm47 commented Aug 9, 2022

ℹ️ Needs rebase.

We implement the first step of the dual funding protocol: exchanging
`open_channel2` and `accept_channel2`.

We currently stop after exchanging these two messages. Future commits will
add the interactive-tx protocol used to build the funding transaction.
@t-bast t-bast force-pushed the dual-funding-open-accept branch from be4bf6a to de12938 Compare August 9, 2022 12:45
@t-bast
Copy link
Copy Markdown
Member Author

t-bast commented Aug 9, 2022

Rebased.

Comment thread eclair-core/src/main/scala/fr/acinq/eclair/channel/ChannelData.scala Outdated
Comment thread eclair-core/src/main/scala/fr/acinq/eclair/io/Peer.scala Outdated
Comment thread eclair-core/src/main/scala/fr/acinq/eclair/io/Peer.scala
pm47
pm47 previously approved these changes Aug 9, 2022
Copy link
Copy Markdown
Member

@pm47 pm47 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@pm47 pm47 self-requested a review August 9, 2022 15:12
@t-bast t-bast merged commit 0310bf5 into master Aug 9, 2022
@t-bast t-bast deleted the dual-funding-open-accept branch August 9, 2022 15:13
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.

4 participants