Sync now provide the unconfirmed CoinJoins.
MODIFY
WalletWasabi.Backend/Controllers/BatchController.cs
WalletWasabi.Backend/Controllers/BatchController.cs
@@ -85,6 +85,8 @@ namespace WalletWasabi.Backend.Controllers
response.ExchangeRates = await OffchainController.GetExchangeRatesCollectionAsync();
+ response.UnconfirmedCoinJoins = await ChaumianCoinJoinController.GetUnconfirmedCoinJoinCollectionAsync();
+
return Ok(response);
}
}

MODIFY
WalletWasabi.Backend/Controllers/ChaumianCoinJoinController.cs
WalletWasabi.Backend/Controllers/ChaumianCoinJoinController.cs
@@ -742,10 +742,16 @@ namespace WalletWasabi.Backend.Controllers
/// <response code="200">An array of transactions Ids</response>
[HttpGet("unconfirmed-coinjoins")]
[ProducesResponseType(200)]
- public async Task<IActionResult> GetUnconfirmedCoinjoinAsync()
+ public async Task<IActionResult> GetUnconfirmedCoinjoinsAsync()
+ {
+ IEnumerable<string> unconfirmedCoinJoinString = (await GetUnconfirmedCoinJoinCollectionAsync()).Select(x => x.ToString());
+ return Ok(unconfirmedCoinJoinString);
+ }
+
+ internal async Task<IEnumerable<uint256>> GetUnconfirmedCoinJoinCollectionAsync()
{
var unconfirmedCoinJoins = await Global.Coordinator.GetUnconfirmedCoinJoinsAsync();
- return Ok(unconfirmedCoinJoins);
+ return unconfirmedCoinJoins;
}
private Guid GetGuidOrFailureResponse(string uniqueId, out IActionResult returnFailureResponse)

MODIFY
WalletWasabi/Backend/Models/Responses/SynchronizeResponse.cs
WalletWasabi/Backend/Models/Responses/SynchronizeResponse.cs
+using NBitcoin;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
@@ -22,5 +23,8 @@ namespace WalletWasabi.Backend.Models.Responses
public AllFeeEstimate AllFeeEstimate { get; set; }
public IEnumerable<ExchangeRate> ExchangeRates { get; set; }
+
+ [JsonProperty(ItemConverterType = typeof(Uint256JsonConverter))]
+ public IEnumerable<uint256> UnconfirmedCoinJoins { get; set; }
}
}

Sync now provide the unconfirmed CoinJoins.