-
Notifications
You must be signed in to change notification settings - Fork 902
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
Anchors not experimental #6785
Anchors not experimental #6785
Conversation
17728fb
to
9281d70
Compare
d428aa4
to
ab57d85
Compare
ab57d85
to
df42490
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not look much inside the test, but looks like that this change cause a force close
lightningd-2 2024-01-23T07:26:48.120Z DEBUG 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-connectd: Subd did not close, forcing close
lightningd-2 2024-01-23T07:26:48.121Z **BROKEN** 0266e4598d1d3c415f572a8488830b60f7e744ed9235eb0b1ba93283b315c03518-connectd: Peer did not close, forcing close
lightningd-1 2024-01-23T07:26:48.121Z DEBUG connectd: drain_peer
Looks good to me but I did have a question. On normal commits we send the anchor info for each commitment to lightningd: https://github.com/rustyrussell/lightning/blob/df42490d2100a971eba07d5c5d7bcf61693ab260/channeld/channeld.c#L1768 On reestablish however, we discard the anchor info: https://github.com/rustyrussell/lightning/blob/df42490d2100a971eba07d5c5d7bcf61693ab260/channeld/channeld.c#L4734 We also discard the anchor info during splice: https://github.com/rustyrussell/lightning/blob/df42490d2100a971eba07d5c5d7bcf61693ab260/channeld/channeld.c#L2957 Is the anchor info meant to be discarded in those situations? |
df42490
to
6edb31f
Compare
Rebased on top of master. There were a couple of conflicts around the line_graph calls gaining more options. I will fix these up if I broke them, so this should make it through soon. |
Yes, this is a retransmission, so we already have given it.
Hmm, this is a good question! We need to add a new anchor_info at this point. I'll create a test and fix... |
6edb31f
to
4aafb77
Compare
Rebased on top of |
…ing anchor channel. We tried to open a channel with feerate 0 in this case! Rework so it's clear that we have two different feerates here. Signed-off-by: Rusty Russell <[email protected]>
We used to look for either other outputs which are sufficient for reserve, *or* be able to create sufficient change to meet the emergency reserve. Allow the sum of both to meet the requirements: otherwise test_funder_contribution_limits can flake. Signed-off-by: Rusty Russell <[email protected]>
We might have (or be getting!) anchor channels, so keep this aside when funding. Signed-off-by: Rusty Russell <[email protected]>
4aafb77
to
c831a48
Compare
Rebase did some accidental reversions, fixed, and removed a flake... |
Sorry about that, restarting CI to remove one more flake. |
We still have some test failures that I'm not exactly sure are flakes. @rustyrussell can you confirm that these are flakes?
(I will collect more as I find them running the CI). |
This simplifies our tests which will want to turn off anchors, even though they won't be set for elements. Signed-off-by: Rusty Russell <[email protected]>
This is in anticipation of changing the defaults for non-elements. Signed-off-by: Rusty Russell <[email protected]>
c831a48
to
8bc026a
Compare
We still want to test non-anchor channels, as we still support them, but we've made it non-experimental. To test non-anchor channels, we use dev-force-features: -23. Changelog-Added: Protocol: `option_anchors_zero_fee_htlc_tx` enabled, no longer experimental. Changelog-Changed: Config: `experimental-anchors` now does nothing (it's enabled by default). Signed-off-by: Rusty Russell <[email protected]> Header from folded patch 'fixup!_options__make_anchors_enabled_by_default,_ignore_experimental-anchors.patch': fixup! options: make anchors enabled by default, ignore experimental-anchors.
Signed-off-by: Rusty Russell <[email protected]>
8bc026a
to
16ab95d
Compare
OK, I've not enabled anchors by default for elements. It needs more work for that, and it's unnecessary at the moment. Tests have been re-reworked to allow either... |
If we try to reuse the same UTXO for the HTLC as the anchor, it will clash. One block later we can spend the anchor change, all good. Signed-off-by: Rusty Russell <[email protected]>
5a2b623
to
28070b2
Compare
Based on #6780Rebased on master.