Place GetMempoolHashesAsync to correct region
MODIFY
WalletWasabi/WebClients/Wasabi/WasabiClient.cs
WalletWasabi/WebClients/Wasabi/WasabiClient.cs
@@ -130,6 +130,27 @@ namespace WalletWasabi.WebClients.Wasabi
await BroadcastAsync(transaction.Transaction);
}
+ public async Task<IEnumerable<uint256>> GetMempoolHashesAsync(CancellationToken cancel = default)
+ {
+ using (var response = await TorClient.SendAndRetryAsync(HttpMethod.Get,
+ HttpStatusCode.OK,
+ $"/api/v{Helpers.Constants.BackendMajorVersion}/btc/blockchain/mempool-hashes",
+ cancel: cancel))
+ {
+ if (response.StatusCode != HttpStatusCode.OK)
+ {
+ await response.ThrowRequestExceptionFromContentAsync();
+ }
+
+ using (HttpContent content = response.Content)
+ {
+ var strings = await content.ReadAsJsonAsync<IEnumerable<string>>();
+ var ret = strings.Select(x => new uint256(x));
+ return ret;
+ }
+ }
+ }
+
#endregion blockchain
#region offchain
@@ -187,27 +208,6 @@ namespace WalletWasabi.WebClients.Wasabi
return (backendCompatible, clientUpToDate);
}
- public async Task<IEnumerable<uint256>> GetMempoolHashesAsync(CancellationToken cancel = default)
- {
- using (var response = await TorClient.SendAndRetryAsync(HttpMethod.Get,
- HttpStatusCode.OK,
- $"/api/v{Helpers.Constants.BackendMajorVersion}/btc/blockchain/mempool-hashes",
- cancel: cancel))
- {
- if (response.StatusCode != HttpStatusCode.OK)
- {
- await response.ThrowRequestExceptionFromContentAsync();
- }
-
- using (HttpContent content = response.Content)
- {
- var strings = await content.ReadAsJsonAsync<IEnumerable<string>>();
- var ret = strings.Select(x => new uint256(x));
- return ret;
- }
- }
- }
-
#endregion software
}
}

Place GetMempoolHashesAsync to correct region