Ensure minimum RBF feerate satisfies BIP125#4494
Ensure minimum RBF feerate satisfies BIP125#4494TheBlueMatt merged 1 commit intolightningdevkit:mainfrom
Conversation
|
👋 Thanks for assigning @TheBlueMatt as a reviewer! |
72455fc to
1098cc3
Compare
1098cc3 to
9b9c114
Compare
|
Will need for proper integration testing of LDK Node's |
|
I have thoroughly reviewed the entire PR diff. All three issues from my prior review have been addressed in this revision:
The new test No issues found. |
a18dac2 to
a8d3bda
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4494 +/- ##
==========================================
+ Coverage 86.24% 87.12% +0.88%
==========================================
Files 160 163 +3
Lines 107909 108740 +831
Branches 107909 108740 +831
==========================================
+ Hits 93061 94735 +1674
+ Misses 12212 11520 -692
+ Partials 2636 2485 -151
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
a8d3bda to
f56d3c8
Compare
|
Needs a squash. Can we move forward with this yet or is there still more spec discussion to be had? |
The spec's 25/24 multiplier doesn't always satisfy BIP125's relay requirement of an absolute fee increase at low feerates, while a flat +25 sat/kwu increment falls below the spec's 25/24 rule above 600 sat/kwu. Use max(prev + 25, ceil(prev * 25/24)) for our own RBFs to satisfy both constraints, while still accepting the bare 25/24 rule from counterparties. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
f56d3c8 to
1ff1bb4
Compare
Squashed. Yeah, we can move forward. We still enforce the spec as it is currently written against our counterparty. |
The spec's 25/24 multiplier doesn't always satisfy BIP125's relay requirement of an absolute fee increase at low feerates, while a flat +25 sat/kwu increment falls below the spec's 25/24 rule above 600 sat/kwu. Use
max(prev + 25, ceil(prev * 25/24))for our own RBFs to satisfy both constraints, while still accepting the bare 25/24 rule from counterparties.Potential spec change in lightning/bolts#1327.