small format fixes
MODIFY
WalletWasabi/WabiSabi/Backend/Rounds/CoinJoinStorage/InMemoryCoinJoinIdStore.cs
WalletWasabi/WabiSabi/Backend/Rounds/CoinJoinStorage/InMemoryCoinJoinIdStore.cs
using NBitcoin;
-using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.IO;
using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-namespace WalletWasabi.WabiSabi.Backend.Rounds.CoinJoinStorage
-{
+namespace WalletWasabi.WabiSabi.Backend.Rounds.CoinJoinStorage;
+
public class InMemoryCoinJoinIdStore
{
public InMemoryCoinJoinIdStore(IEnumerable<uint256> coinJoinHashes)
@@ -39,4 +36,3 @@ namespace WalletWasabi.WabiSabi.Backend.Rounds.CoinJoinStorage
return store;
}
}
-}

MODIFY
WalletWasabi/WabiSabi/Client/AliceClient.cs
WalletWasabi/WabiSabi/Client/AliceClient.cs
@@ -160,9 +160,7 @@ public class AliceClient
private async Task<bool> TryConfirmConnectionAsync(IEnumerable<long> amountsToRequest, IEnumerable<long> vsizesToRequest, CancellationToken cancellationToken)
{
- var totalFeeToPay = FeeRate.GetFee(SmartCoin.ScriptPubKey.EstimateInputVsize());
- var totalAmount = SmartCoin.Amount;
- var effectiveAmount = totalAmount - totalFeeToPay;
+ var effectiveAmount = EffectiveValue;
if (effectiveAmount <= Money.Zero)
{

MODIFY
WalletWasabi/WabiSabi/Client/AmountDecomposer.cs
WalletWasabi/WabiSabi/Client/AmountDecomposer.cs
using System.Collections.Generic;
-using System.Collections.Immutable;
using System.Linq;
using NBitcoin;
-using WalletWasabi.WabiSabi.Models;
namespace WalletWasabi.WabiSabi.Client;

MODIFY
WalletWasabi/WabiSabi/Models/CoordinationFeeRate.cs
WalletWasabi/WabiSabi/Models/CoordinationFeeRate.cs
using NBitcoin;
using WalletWasabi.Helpers;
-namespace WalletWasabi.WabiSabi.Models
-{
+namespace WalletWasabi.WabiSabi.Models;
+
public struct CoordinationFeeRate
{
public static readonly CoordinationFeeRate Zero = new(0, Money.Zero);
@@ -18,7 +18,7 @@ namespace WalletWasabi.WabiSabi.Models
public Money GetFee(Money amount)
{
- // Under 1 000 000 satoshis plebs don't have to pay.
+ // Plebs don't have to pay.
if (amount <= PlebsDontPayThreshold)
{
return Money.Zero;
@@ -29,4 +29,3 @@ namespace WalletWasabi.WabiSabi.Models
}
}
}
-}

MODIFY
WalletWasabi/WabiSabi/Models/InputRegistrationResponse.cs
WalletWasabi/WabiSabi/Models/InputRegistrationResponse.cs
using WalletWasabi.WabiSabi.Crypto.CredentialRequesting;
-namespace WalletWasabi.WabiSabi.Models
-{
+namespace WalletWasabi.WabiSabi.Models;
+
public record InputRegistrationResponse(
Guid AliceId,
CredentialsResponse AmountCredentials,
CredentialsResponse VsizeCredentials,
bool IsPayingZeroCoordinationFee
);
-}

small format fixes