Move RBF rate to Constants.cs
MODIFY
WalletWasabi/Helpers/Constants.cs
WalletWasabi/Helpers/Constants.cs
@@ -99,6 +99,8 @@ namespace WalletWasabi.Helpers
public const string Chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
+ public const float TransactionRBFSignalRate = 0.02F; // 2% RBF transactions
+
public const decimal DefaultDustThreshold = 0.00005m;
}
}

MODIFY
WalletWasabi/Transactions/TransactionFactory.cs
WalletWasabi/Transactions/TransactionFactory.cs
@@ -141,7 +141,7 @@ namespace WalletWasabi.Transactions
builder.SetChange(changeHdPubKey.P2wpkhScript);
}
- builder.OptInRBF = new Random().NextDouble() < 0.02; // 2% RBF transactions
+ builder.OptInRBF = new Random().NextDouble() < Constants.TransactionRBFSignalRate;
FeeRate feeRate = feeRateFetcher();
builder.SendEstimatedFees(feeRate);

Move RBF rate to Constants.cs