Add back parenthesis (Something automatically removed them :o)
MODIFY
WalletWasabi/Wallets/WalletService.cs
WalletWasabi/Wallets/WalletService.cs
@@ -525,7 +525,7 @@ namespace WalletWasabi.Wallets
{
try
{
- if (LocalBitcoinCoreNode is null || !LocalBitcoinCoreNode.IsConnected && Network != Network.RegTest) // If RegTest then we're already connected do not try again.
+ if (LocalBitcoinCoreNode is null || (!LocalBitcoinCoreNode.IsConnected && Network != Network.RegTest)) // If RegTest then we're already connected do not try again.
{
DisconnectDisposeNullLocalBitcoinCoreNode();
using var handshakeTimeout = CancellationTokenSource.CreateLinkedTokenSource(cancel);
@@ -750,9 +750,9 @@ namespace WalletWasabi.Wallets
var randomValue = rnd.NextDouble();
return randomValue switch
{
- var r when r < 0.9 => LockTime.Zero,
- var r when r < 0.9 + 0.075 => tipHeight,
- var r when r < 0.9 + 0.075 + 0.0065 => (tipHeight + 1),
+ var r when r < (0.9) => LockTime.Zero,
+ var r when r < (0.9 + 0.075) => tipHeight,
+ var r when r < (0.9 + 0.075 + 0.0065) => (uint)(tipHeight + 1),
_ => (uint)(tipHeight - rnd.Next(1, 100))
};
}

Add back parenthesis (Something automatically removed them :o)