Uh oh!
There was an error while loading. Please reload this page.
Add ChannelReady event - #1743
Conversation
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
33dbc0c to
405c589Comparetnull
commented
Oct 26, 2022
Rebased on main and reworked the approach: a In the second commit I included the discussed renaming of Finally, the third commit includes a minor fix for unused import warnings. Tests currently still failing, looking into it. |
b7135dd to
2526975CompareUh oh!
There was an error while loading. Please reload this page.
f7d8c41 to
dabe755Comparetnull
commented
Oct 28, 2022
Fixed tests and rebased on main. |
7fde0f7 to
f969b45CompareCodecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@## main #1743 +/- ##
==========================================
+ Coverage 90.73% 91.28% +0.55%
==========================================
Files 87 87 Lines 47336 49835 +2499 Branches 47336 49835 +2499 ==========================================
+ Hits 42950 45494 +2544 + Misses 4386 4341 -45 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
75861b2 to
735fa78Compareae803b8 to
85ee73aCompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
43e5538 to
71a999bComparetnull
commented
Nov 1, 2022
I now reverted the 'bubble-up' approach after all since all required checks are conducted in the Squashed changes. |
dunxen
left a comment
There was a problem hiding this comment.
Looks good. Just noticed we use "0conf" and "0-conf" in comments throughout the project. The hyphenated one looks "more correct". No biggie.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
9033c30 to
f3c23a8CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| let bs_htlc_claim_txn = nodes[1].tx_broadcaster.txn_broadcasted.lock().unwrap().split_off(0); | ||
| assert_eq!(bs_htlc_claim_txn.len(), 1); | ||
| check_spends!(bs_htlc_claim_txn[0], as_commitment_tx); | ||
| expect_payment_forwarded!(nodes[1], nodes[0], nodes[2], None, false, false); |
There was a problem hiding this comment.
I'm not sure I understand why we have to move this up?
There was a problem hiding this comment.
Ah, we want to move this because the PaymentForwarded event is emitted by the handle_update_fulfill_htlc already and then the expect_channel_ready_event call in create_announced_chan_between_nodes fails due to 2 events being queued.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
2ce2b15 to
2f10adfCompareTheBlueMatt
commented
Nov 2, 2022
I think this is good - can you squash the fixups into the appropriate commits? Its somewhat hard to re-review when the fixups are all at the end rather than with the commit they'll eventually get squashed into. |
2f10adf to
a8720b2Comparetnull
commented
Nov 2, 2022
Think all fixups belonged to the first commit => Done. |
Is it worth having a release notes entry for this that says that "no ChannelReady events will be generated for existing channels, including those which become ready on 0.0.113"? I don't think its worth having complicated logic for whether we default |
TheBlueMatt
commented
Nov 2, 2022
Either way, current code LGTM, probably fine to squash given the reviewers currently. You can leave a diff-tree of the fixups if you want. |
This adds a `ChannelReady` event that is emitted as soon as a new channel becomes usable, i.e., after both sides have sent `channel_ready`.
We rename `ChannelState::ChannelFunded` to `ChannelState::ChannelReady` as we'll be in this state when both sides sent the `ChannelReady` messages, which may also be before funding in the 0conf case.
Previously introduced during release commit.
a8720b2 to
49dfcb6CompareSquashed fixups and included the pending changelog message |
Closes#1394.
This adds a
ChannelReadyevent that will be emitted as soon as a newchannel becomes usable, i.e., after both sides have sent
channel_ready.