Some format codefactor fixes
MODIFY
WalletWasabi.Gui/Models/FeeDisplayFormat.cs
WalletWasabi.Gui/Models/FeeDisplayFormat.cs
@@ -10,5 +10,5 @@ namespace WalletWasabi.Gui.Models
BTC,
SatoshiPerByte,
Percentage
- };
+ }
}

MODIFY
WalletWasabi/Helpers/NBitcoinHelpers.cs
WalletWasabi/Helpers/NBitcoinHelpers.cs
@@ -48,8 +48,8 @@ namespace WalletWasabi.Helpers
public static int CalculateVsizeAssumeSegwit(int inNum, int outNum)
{
- var origTxSize = inNum * Constants.P2pkhInputSizeInBytes + outNum * Constants.OutputSizeInBytes + 10;
- var newTxSize = inNum * Constants.P2wpkhInputSizeInBytes + outNum * Constants.OutputSizeInBytes + 10; // BEWARE: This assumes segwit only inputs!
+ var origTxSize = (inNum * Constants.P2pkhInputSizeInBytes) + (outNum * Constants.OutputSizeInBytes) + 10;
+ var newTxSize = (inNum * Constants.P2wpkhInputSizeInBytes) + (outNum * Constants.OutputSizeInBytes) + 10; // BEWARE: This assumes segwit only inputs!
var vSize = (int)Math.Ceiling(((3 * newTxSize) + origTxSize) / 4m);
return vSize;
}

MODIFY
WalletWasabi/Models/ConcurrentHashSet.cs
WalletWasabi/Models/ConcurrentHashSet.cs
@@ -577,7 +577,7 @@ namespace WalletWasabi.Models
checked
{
// Double the size of the buckets table and add one, so that we have an odd integer.
- newLength = tables.Buckets.Length * 2 + 1;
+ newLength = (tables.Buckets.Length * 2) + 1;
// Now, we only need to check odd integers, and find the first that is not divisible
// by 3, 5 or 7.

Some format codefactor fixes