Skip to content
Permalink
Browse files

Log on Client side for #716

  • Loading branch information...
nopara73 committed Nov 2, 2018
1 parent b29c916 commit c8cdfd0b1f71520bc7f46a356f6b0b28adaf5e25
Showing with 16 additions and 1 deletion.
  1. +16 −1 WalletWasabi/Services/CcjClient.cs
@@ -16,6 +16,7 @@
using WalletWasabi.Models;
using WalletWasabi.WebClients.Wasabi.ChaumianCoinJoin;
using System.Collections.Concurrent;
using System.Net.Http;

namespace WalletWasabi.Services
{
@@ -264,7 +265,21 @@ private async Task TryProcessRoundStateAsync(long ongoingRoundId)
Transaction unsignedCoinJoin = await ongoingRound.AliceClient.GetUnsignedCoinJoinAsync();
Dictionary<int, WitScript> myDic = SignCoinJoin(ongoingRound, unsignedCoinJoin);

await ongoingRound.AliceClient.PostSignaturesAsync(myDic);
try
{
await ongoingRound.AliceClient.PostSignaturesAsync(myDic);
}
catch (HttpRequestException)
{
var toLog = $"{nameof(unsignedCoinJoin)} hex: {unsignedCoinJoin.ToHex()}\n";
foreach (var elem in myDic)
{
toLog += $"\tInput Index: {elem.Key}\t Signature: {elem.Value.ToString()}/n";
}
Logger.LogWarning<CcjClient>(toLog);

throw;
}
ongoingRound.Signed = true;
}
}

0 comments on commit c8cdfd0

Please sign in to comment.
You can’t perform that action at this time.