Rename {Is,Was}TransactionBroadcast{ed,}
MODIFY
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PhaseStepping/StepTransactionSigningTests.cs
WalletWasabi.Tests/UnitTests/WabiSabi/Backend/PhaseStepping/StepTransactionSigningTests.cs
@@ -84,7 +84,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend.PhaseStepping
await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(21));
Assert.DoesNotContain(round, arena.ActiveRounds);
Assert.Equal(Phase.Ended, round.Phase);
- Assert.False(round.IsTransactionBroadcasted);
+ Assert.False(round.WasTransactionBroadcast);
Assert.Empty(arena.Prison.GetInmates());
await arena.StopAsync(CancellationToken.None);
@@ -124,7 +124,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend.PhaseStepping
await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(21));
Assert.DoesNotContain(round, arena.ActiveRounds);
Assert.Equal(Phase.Ended, round.Phase);
- Assert.False(round.IsTransactionBroadcasted);
+ Assert.False(round.WasTransactionBroadcast);
// There should be no inmate, because we aren't punishing spenders with banning
// as there's no reason to ban already spent UTXOs,
@@ -167,7 +167,7 @@ namespace WalletWasabi.Tests.UnitTests.WabiSabi.Backend.PhaseStepping
await arena.TriggerAndWaitRoundAsync(TimeSpan.FromSeconds(21));
Assert.DoesNotContain(round, arena.ActiveRounds);
Assert.Equal(Phase.Ended, round.Phase);
- Assert.False(round.IsTransactionBroadcasted);
+ Assert.False(round.WasTransactionBroadcast);
Assert.Empty(arena.Rounds.Where(x => x.IsBlameRound));
Assert.Contains(aliceClient2.Coin.Outpoint, arena.Prison.GetInmates().Select(x => x.Utxo));

MODIFY
WalletWasabi/WabiSabi/Backend/Rounds/Arena.cs
WalletWasabi/WabiSabi/Backend/Rounds/Arena.cs
@@ -175,7 +175,7 @@ namespace WalletWasabi.WabiSabi.Backend.Rounds
// Broadcasting.
await Rpc.SendRawTransactionAsync(coinjoin).ConfigureAwait(false);
- round.IsTransactionBroadcasted = true;
+ round.WasTransactionBroadcast = true;
round.SetPhase(Phase.Ended);
round.LogInfo($"Successfully broadcast the CoinJoin: {coinjoin.GetHash()}.");
@@ -275,7 +275,7 @@ namespace WalletWasabi.WabiSabi.Backend.Rounds
var coin = await InputRegistrationHandler.OutpointToCoinAsync(request, Prison, Rpc, Config).ConfigureAwait(false);
using (await AsyncLock.LockAsync().ConfigureAwait(false))
{
- var registeredCoins = Rounds.Where(x => !(x.Phase == Phase.Ended && !x.IsTransactionBroadcasted)).SelectMany(r => r.Alices.Select(a => a.Coin));
+ var registeredCoins = Rounds.Where(x => !(x.Phase == Phase.Ended && !x.WasTransactionBroadcast)).SelectMany(r => r.Alices.Select(a => a.Coin));
if (registeredCoins.Any(x => x.Outpoint == coin.Outpoint))
{

MODIFY
WalletWasabi/WabiSabi/Backend/Rounds/Round.cs
WalletWasabi/WabiSabi/Backend/Rounds/Round.cs
@@ -62,7 +62,7 @@ namespace WalletWasabi.WabiSabi.Backend.Rounds
public DateTimeOffset OutputRegistrationStart { get; private set; }
public DateTimeOffset TransactionSigningStart { get; private set; }
public DateTimeOffset End { get; private set; }
- public bool IsTransactionBroadcasted { get; set; }
+ public bool WasTransactionBroadcast { get; set; }
public int InitialInputVsizeAllocation { get; internal set; }
public int RemainingInputVsizeAllocation => InitialInputVsizeAllocation - InputCount * MaxVsizeAllocationPerAlice;

MODIFY
WalletWasabi/WabiSabi/Client/CoinJoinClient.cs
WalletWasabi/WabiSabi/Client/CoinJoinClient.cs
@@ -119,7 +119,7 @@ namespace WalletWasabi.WabiSabi.Client
var finalRoundState = await RoundStatusUpdater.CreateRoundAwaiter(s => s.Id == roundState.Id && s.Phase == Phase.Ended, cancellationToken).ConfigureAwait(false);
- return finalRoundState.IsTransactionBroadcasted;
+ return finalRoundState.WasTransactionBroadcast;
}
private List<AliceClient> CreateAliceClients(RoundState roundState)

MODIFY
WalletWasabi/WabiSabi/Models/RoundState.cs
WalletWasabi/WabiSabi/Models/RoundState.cs
@@ -15,7 +15,7 @@ namespace WalletWasabi.WabiSabi.Models
CredentialIssuerParameters VsizeCredentialIssuerParameters,
FeeRate FeeRate,
Phase Phase,
- bool IsTransactionBroadcasted,
+ bool WasTransactionBroadcast,
TimeSpan ConnectionConfirmationTimeout,
long MaxRegistrableAmount,
long MaxRegistrableVsize,
@@ -30,7 +30,7 @@ namespace WalletWasabi.WabiSabi.Models
round.VsizeCredentialIssuerParameters,
round.FeeRate,
round.Phase,
- round.IsTransactionBroadcasted,
+ round.WasTransactionBroadcast,
round.ConnectionConfirmationTimeout,
round.MaxRegistrableAmount,
round.MaxRegistrableVsize,

Rename {Is,Was}TransactionBroadcast{ed,}