-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[2/5]sweep: refactor fee estimation and introduce UtxoAggregator
#8422
Changes from 3 commits
c3f9c28
9745a1c
aedf971
38985ad
32a2ca4
b5f58ee
b249451
81874f8
5abfb39
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,8 @@ import ( | |
// mockFeeEstimator implements a mock fee estimator. It closely resembles | ||
// lnwallet.StaticFeeEstimator with the addition that fees can be changed for | ||
// testing purposes in a thread safe manner. | ||
// | ||
// TODO(yy): replace it with chainfee.MockEstimator once it's merged. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Q: isn't this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah but I wanna remove |
||
type mockFeeEstimator struct { | ||
feePerKW chainfee.SatPerKWeight | ||
|
||
|
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.
Q: so we don't cap the fee when sending coins, or what's the use case for the
EstimateFee
rpc ? When this rpc is used to make decisions when to trigger another RPC (e.g. sendcoins) we probably should also add the MaxFee cap there ?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 think we need to update a few RPCs to allow specifying a max fee rate cap, including
sendcoins
. As for the usage ofEstimateFee
, I think it's used when we wanna open channels?