-
Notifications
You must be signed in to change notification settings - Fork 38.7k
wallet: Avoid requesting fee rates multiple times during coin selection #21083
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
Changes from all commits
1a6a0b0
e2f429e
448d04b
bdd0c29
f9cd2bf
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 |
|---|---|---|
|
|
@@ -606,17 +606,22 @@ struct CoinSelectionParams | |
| bool use_bnb = true; | ||
| size_t change_output_size = 0; | ||
| size_t change_spend_size = 0; | ||
| CFeeRate effective_fee = CFeeRate(0); | ||
| CFeeRate m_effective_feerate; | ||
| CFeeRate m_long_term_feerate; | ||
| CFeeRate m_discard_feerate; | ||
| size_t tx_noinputs_size = 0; | ||
| //! Indicate that we are subtracting the fee from outputs | ||
| bool m_subtract_fee_outputs = false; | ||
| bool m_avoid_partial_spends = false; | ||
|
|
||
| CoinSelectionParams(bool use_bnb, size_t change_output_size, size_t change_spend_size, CFeeRate effective_fee, size_t tx_noinputs_size, bool avoid_partial) : | ||
| CoinSelectionParams(bool use_bnb, size_t change_output_size, size_t change_spend_size, CFeeRate effective_feerate, | ||
| CFeeRate long_term_feerate, CFeeRate discard_feerate, size_t tx_noinputs_size, bool avoid_partial) : | ||
| use_bnb(use_bnb), | ||
| change_output_size(change_output_size), | ||
| change_spend_size(change_spend_size), | ||
| effective_fee(effective_fee), | ||
| m_effective_feerate(effective_feerate), | ||
|
Contributor
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. Should perhaps all of these now start with
Member
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. 👍 Good for followup?
Member
Author
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. They should, but that's an unrelated change. The newly added members use |
||
| m_long_term_feerate(long_term_feerate), | ||
| m_discard_feerate(discard_feerate), | ||
| tx_noinputs_size(tx_noinputs_size), | ||
| m_avoid_partial_spends(avoid_partial) | ||
| {} | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.