-
Notifications
You must be signed in to change notification settings - Fork 411
Move and Rustfmt channel acceptance and type downgrade tests #3797
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
base: main
Are you sure you want to change the base?
Conversation
👋 I see @jkczyz was un-assigned. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3797 +/- ##
==========================================
+ Coverage 89.91% 89.92% +0.01%
==========================================
Files 160 161 +1
Lines 129307 129623 +316
Branches 129307 129623 +316
==========================================
+ Hits 116262 116561 +299
- Misses 10355 10370 +15
- Partials 2690 2692 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🔔 1st Reminder Hey @jkczyz! This PR has been waiting for your review. |
🔔 2nd Reminder Hey @jkczyz! This PR has been waiting for your review. |
Removing bot-reviewer until dependent PR is in. |
26032a9
to
8e347da
Compare
Useful for the commits that follow where we add more downgrade tests.
Rather than duplicating our channel type preference ordering in downgrade logic, make a modified version of the remote peer's supported features and remove our current channel type from it to get the next preferred channel type.
To allow testing along the way in this PR, turn on negotiation of zero fee channels. Co-authored-by: Matt Corallo <[email protected]>
Sender: MUST set `feerate_per_kw` to zero Receiver: MUST fail the channel if `feerate_per_kw` != 0 Co-authored-by: Matt Corallo <[email protected]>
Like anchor channels, these channels require that the user reserves a UTXO to bump the channel. If we automatically accept this channel type and the user does not have such reserve available, they are at risk of losing funds because they cannot fee bump the channel.
8e347da
to
a204e88
Compare
Depends on #3792, as requested in review.
Only last 2 commits reviewable in this PR.