Add fallbackfee config
MODIFY
WalletWasabi.Gui/Global.cs
WalletWasabi.Gui/Global.cs
@@ -225,6 +225,7 @@ namespace WalletWasabi.Gui
txIndex: null,
prune: null,
userAgent: $"/WasabiClient:{Constants.ClientVersion}/",
+ fallbackFee: null, // ToDo: Maybe we should have it, not only for tests?
Cache),
cancel)
.ConfigureAwait(false);

MODIFY
WalletWasabi.Tests/Helpers/TestNodeBuilder.cs
WalletWasabi.Tests/Helpers/TestNodeBuilder.cs
@@ -34,6 +34,7 @@ namespace WalletWasabi.Tests.Helpers
txIndex: 1,
prune: 0,
userAgent: $"/WasabiClient:{Constants.ClientVersion}/",
+ fallbackFee: Money.Coins(0.0002m), // https://github.com/bitcoin/bitcoin/pull/16524
new MemoryCache(new MemoryCacheOptions())),
CancellationToken.None);
}

MODIFY
WalletWasabi/BitcoinCore/CoreNode.cs
WalletWasabi/BitcoinCore/CoreNode.cs
@@ -97,7 +97,6 @@ namespace WalletWasabi.BitcoinCore
coreNode.Network);
coreNode.RpcClient = new CachedRpcClient(rpcClient, coreNodeParams.Cache);
-
if (coreNodeParams.TryRestart)
{
await coreNode.TryStopAsync(false).ConfigureAwait(false);
@@ -140,6 +139,11 @@ namespace WalletWasabi.BitcoinCore
desiredConfigLines.Add($"{configPrefix}.prune = {coreNodeParams.Prune}");
}
+ if (coreNodeParams.FallbackFee is { })
+ {
+ desiredConfigLines.Add($"{configPrefix}.fallbackfee = {coreNodeParams.FallbackFee.ToString(fplus: false, trimExcessZero: true)}");
+ }
+
var sectionComment = $"# The following configuration options were added or modified by Wasabi Wallet.";
// If the comment is not already present.
// And there would be new config entries added.

MODIFY
WalletWasabi/BitcoinCore/CoreNodeParams.cs
WalletWasabi/BitcoinCore/CoreNodeParams.cs
@@ -25,6 +25,7 @@ namespace WalletWasabi.BitcoinCore
int? txIndex,
int? prune,
string userAgent,
+ Money fallbackFee,
IMemoryCache cache)
{
Network = Guard.NotNull(nameof(network), network);
@@ -38,6 +39,7 @@ namespace WalletWasabi.BitcoinCore
TxIndex = txIndex;
Prune = prune;
UserAgent = Guard.NotNullOrEmptyOrWhitespace(nameof(userAgent), userAgent, trim: true);
+ FallbackFee = fallbackFee;
Cache = Guard.NotNull(nameof(cache), cache);
}
@@ -50,6 +52,7 @@ namespace WalletWasabi.BitcoinCore
public int? TxIndex { get; }
public int? Prune { get; }
public string UserAgent { get; }
+ public Money FallbackFee { get; }
public EndPointStrategy P2pEndPointStrategy { get; }
public EndPointStrategy RpcEndPointStrategy { get; }
public IMemoryCache Cache { get; }

Add fallbackfee config