fix randomization of output types
MODIFY
WalletWasabi/WabiSabi/Client/InternalDestinationProvider.cs
WalletWasabi/WabiSabi/Client/InternalDestinationProvider.cs
@@ -24,9 +24,13 @@ public class InternalDestinationProvider : IDestinationProvider
.Where(x => x.FullKeyPath.GetScriptTypeFromKeyPath() == ScriptPubKeyType.TaprootBIP86)
.ToList();
+ var segwitKeys = allKeys
+ .Where(x => x.FullKeyPath.GetScriptTypeFromKeyPath() == ScriptPubKeyType.Segwit)
+ .ToList();
+
var destinations = preferTaproot && taprootKeys.Count >= count
? taprootKeys
- : allKeys;
+ : segwitKeys;
return destinations.Select(x => x.GetAddress(KeyManager.GetNetwork()));
}
}

fix randomization of output types