Add back getmempoolhashes
MODIFY
WalletWasabi/WebClients/Wasabi/WasabiClient.cs
WalletWasabi/WebClients/Wasabi/WasabiClient.cs
@@ -116,6 +116,24 @@ 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{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;
+ }
+
/// <summary>
/// Gets mempool hashes, but strips the last x characters of each hash.
/// </summary>

Add back getmempoolhashes