-
Notifications
You must be signed in to change notification settings - Fork 418
Use a separate (non-trait) fee-estimation fn in LowerBoundedEstimator #1611
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
Use a separate (non-trait) fee-estimation fn in LowerBoundedEstimator #1611
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1611 +/- ##
==========================================
- Coverage 90.87% 90.77% -0.10%
==========================================
Files 80 80
Lines 44569 44651 +82
Branches 44569 44651 +82
==========================================
+ Hits 40500 40530 +30
- Misses 4069 4121 +52
Continue to review full report at Codecov.
|
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.
Ah, yes! Thanks for the catch. This was required before changing the Channel
method signatures.
LGTM
Pushed an extra commit that is gonna be required for the bindings, but is rather simple. |
The one fuzz just needs the reference to the estimator changed, otherwise looks good. |
9d08b60
to
5f28d17
Compare
Oops, indeed, thanks. |
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.
ACK 5f28d17
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.
ACK after outstanding feedback
1b5bee6
to
3c5d7da
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.
ACK after squash
LGTM, feel free to squash. |
This should make it somewhat more difficult to accidentally use a straight fee estimator when we actually want a LowerBoundedFeeEstimator by not having the types be exchangeable at all.
This simplifies things for bindings (and, to some extent, downstream users) by exploiting the fact that we can always "clone" a reference to a struct by dereferencing and then creating a new reference.
This change the method name on `LowerBoundedFeeEstimator` to further differentiate it from the generic `FeeEstimator` trait.
3c5d7da
to
af7e9b6
Compare
Rebased without further changes. |
Go home Github, you're drunk (the missing required job did run, and passed...but is still listed as pending run...). |
This should make it somewhat more difficult to accidentally use a
straight fee estimator when we actually want a
LowerBoundedFeeEstimator by not having the types be exchangeable at
all.