Skip to content
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

[refactoring] RPCClientExtensions: Simplify #10852

Merged

Conversation

kiminuo
Copy link
Collaborator

@kiminuo kiminuo commented Jun 6, 2023

Addresses #10818 (comment)

@pull-request-size pull-request-size bot added size/XS and removed size/M labels Jun 6, 2023
@kiminuo kiminuo force-pushed the feature/2023-06-05-simplify-feerate-calls branch from ba72d82 to 66e2efe Compare June 6, 2023 07:26
@pull-request-size pull-request-size bot added size/M and removed size/XS labels Jun 6, 2023
@@ -937,7 +937,7 @@ public static async Task<(Money feePerInputs, Money feePerOutputs)> CalculateFee
var outputSizeInBytes = Constants.OutputSizeInBytes;
try
{
var feeRate = (await rpc.EstimateSmartFeeAsync(confirmationTarget, EstimateSmartFeeMode.Conservative, simulateIfRegTest: true).ConfigureAwait(false)).FeeRate;
var feeRate = (await rpc.EstimateConservativeSmartFeeAsync(confirmationTarget).ConfigureAwait(false)).FeeRate;
Copy link
Collaborator Author

@kiminuo kiminuo Jun 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The method was renamed because otherwise a different EstimateSmartFeeAsync method would be called. Not ours in WalletWasabi/Extensions/RPCClientExtensions.cs.

@kiminuo kiminuo marked this pull request as ready for review June 6, 2023 07:54
@kiminuo kiminuo force-pushed the feature/2023-06-05-simplify-feerate-calls branch from f22033d to 4e07e3c Compare June 6, 2023 08:05
@yahiheb yahiheb requested a review from lontivero June 6, 2023 15:22
@kiminuo kiminuo merged commit 63f65b4 into zkSNACKs:master Jun 13, 2023
9 checks passed
@kiminuo kiminuo deleted the feature/2023-06-05-simplify-feerate-calls branch June 13, 2023 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants