Make DustThreshold configurable.
MODIFY
WalletWasabi.Tests/P2pTests.cs
WalletWasabi.Tests/P2pTests.cs
@@ -91,7 +91,7 @@ namespace WalletWasabi.Tests
memPoolService,
nodes,
Global.DataDir,
- new ServiceConfiguration(50, 2, 21, 50, new IPEndPoint(IPAddress.Loopback, network.DefaultPort)));
+ new ServiceConfiguration(50, 2, 21, 50, new IPEndPoint(IPAddress.Loopback, network.DefaultPort), Money.Coins(0.0001m)));
Assert.True(Directory.Exists(blocksFolderPath));
try

MODIFY
WalletWasabi.Tests/RegTests.cs
WalletWasabi.Tests/RegTests.cs
@@ -82,7 +82,7 @@ namespace WalletWasabi.Tests
Backend.Global.Coordinator.UtxoReferee.Clear();
var network = Backend.Global.RpcClient.Network;
- var serviceConfiguration = new ServiceConfiguration(2, 2, 21, 50, RegTestFixture.BackendRegTestNode.Endpoint);
+ var serviceConfiguration = new ServiceConfiguration(2, 2, 21, 50, RegTestFixture.BackendRegTestNode.Endpoint, Money.Coins(0.0001m));
var bitcoinStore = new BitcoinStore();
var dir = Path.Combine(Global.DataDir, caller);
await bitcoinStore.InitializeAsync(dir, network);

MODIFY
WalletWasabi/Helpers/Constants.cs
WalletWasabi/Helpers/Constants.cs
@@ -72,7 +72,5 @@ namespace WalletWasabi.Helpers
public const string ChangeOfSpecialLabelStart = "change of (";
public const string ChangeOfSpecialLabelEnd = ")";
-
- public static Money DustThreshold = Money.Coins(0.0001m);
}
}

MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -619,7 +619,7 @@ namespace WalletWasabi.Services
}
}
- if(output.Value <= Constants.DustThreshold)
+ if (output.Value <= ServiceConfiguration.DustThreshold)
{
continue;
}

Make DustThreshold configurable.