P2pBlockProvider: Remove unused `ServiceConfiguration` parameter
MODIFY
WalletWasabi.Fluent/Global.cs
WalletWasabi.Fluent/Global.cs
@@ -191,7 +191,7 @@ public class Global
var blockProvider = new SmartBlockProvider(
BitcoinStore.BlockRepository,
new LocalBlockProvider(BitcoinCoreNode, HttpClientFactory, Config.ServiceConfiguration, Network),
- new P2pBlockProvider(HostedServices.Get<P2pNetwork>().Nodes, HttpClientFactory, Config.ServiceConfiguration, Network),
+ new P2pBlockProvider(HostedServices.Get<P2pNetwork>().Nodes, HttpClientFactory, Network),
Cache);
WalletManager.RegisterServices(BitcoinStore, Synchronizer, Config.ServiceConfiguration, HostedServices.Get<HybridFeeProvider>(), blockProvider);

MODIFY
WalletWasabi.Tests/IntegrationTests/P2pTests.cs
WalletWasabi.Tests/IntegrationTests/P2pTests.cs
@@ -112,7 +112,7 @@ public class P2pTests
IBlockProvider blockProvider = new SmartBlockProvider(
blockRepository,
new LocalBlockProvider(null, httpClientFactory, serviceConfig, network),
- new P2pBlockProvider(nodes, httpClientFactory, serviceConfig, network),
+ new P2pBlockProvider(nodes, httpClientFactory, network),
cache);
using Wallet wallet = Wallet.CreateAndRegisterServices(

MODIFY
WalletWasabi.Tests/RegressionTests/BuildTests.cs
WalletWasabi.Tests/RegressionTests/BuildTests.cs
@@ -67,7 +67,7 @@ public class BuildTests
var blockProvider = new SmartBlockProvider(
bitcoinStore.BlockRepository,
localBlockProvider: new LocalBlockProvider(coreNode: null, httpClientFactory, serviceConfiguration, network),
- p2PBlockProvider: new P2pBlockProvider(nodes, httpClientFactory, serviceConfiguration, network),
+ p2PBlockProvider: new P2pBlockProvider(nodes, httpClientFactory, network),
cache);
using var wallet = Wallet.CreateAndRegisterServices(network, bitcoinStore, keyManager, synchronizer, workDir, serviceConfiguration, feeProvider, blockProvider);
@@ -224,7 +224,7 @@ public class BuildTests
var blockProvider = new SmartBlockProvider(
bitcoinStore.BlockRepository,
localBlockProvider: new LocalBlockProvider(coreNode: null, httpClientFactory, serviceConfiguration, network),
- p2PBlockProvider: new P2pBlockProvider(nodes, httpClientFactory, serviceConfiguration, network),
+ p2PBlockProvider: new P2pBlockProvider(nodes, httpClientFactory, network),
cache);
WalletManager walletManager = new(network, workDir, new WalletDirectories(network, workDir));

MODIFY
WalletWasabi.Tests/RegressionTests/SendTests.cs
WalletWasabi.Tests/RegressionTests/SendTests.cs
@@ -65,7 +65,7 @@ public class SendTests
var blockProvider = new SmartBlockProvider(
bitcoinStore.BlockRepository,
new LocalBlockProvider(null, httpClientFactory, serviceConfiguration, network),
- new P2pBlockProvider(nodes, httpClientFactory, serviceConfiguration, network),
+ new P2pBlockProvider(nodes, httpClientFactory, network),
cache);
WalletManager walletManager = new(network, workDir, new WalletDirectories(network, workDir));
@@ -547,7 +547,7 @@ public class SendTests
var blockProvider = new SmartBlockProvider(
bitcoinStore.BlockRepository,
new LocalBlockProvider(null, httpClientFactory, serviceConfiguration, network),
- new P2pBlockProvider(nodes, httpClientFactory, serviceConfiguration, network),
+ new P2pBlockProvider(nodes, httpClientFactory, network),
cache);
WalletManager walletManager = new(network, workDir, new WalletDirectories(network, workDir));
@@ -725,7 +725,7 @@ public class SendTests
var blockProvider = new SmartBlockProvider(
bitcoinStore.BlockRepository,
new LocalBlockProvider(null, httpClientFactory, serviceConfiguration, network),
- new P2pBlockProvider(nodes, httpClientFactory, serviceConfiguration, network),
+ new P2pBlockProvider(nodes, httpClientFactory, network),
cache);
using var wallet = Wallet.CreateAndRegisterServices(network, bitcoinStore, keyManager, synchronizer, workDir, serviceConfiguration, feeProvider, blockProvider);

MODIFY
WalletWasabi.Tests/RegressionTests/WalletTests.cs
WalletWasabi.Tests/RegressionTests/WalletTests.cs
@@ -259,7 +259,7 @@ public class WalletTests
SmartBlockProvider blockProvider = new(
blockRepository,
new LocalBlockProvider(null, httpClientFactory, serviceConfiguration, network),
- new P2pBlockProvider(nodes, httpClientFactory, serviceConfiguration, network),
+ new P2pBlockProvider(nodes, httpClientFactory, network),
cache);
using var wallet = Wallet.CreateAndRegisterServices(network, bitcoinStore, keyManager, synchronizer, workDir, serviceConfiguration, feeProvider, blockProvider);

MODIFY
WalletWasabi/Wallets/P2pBlockProvider.cs
WalletWasabi/Wallets/P2pBlockProvider.cs
@@ -19,17 +19,15 @@ namespace WalletWasabi.Wallets;
/// </summary>
public class P2pBlockProvider : IBlockProvider
{
- public P2pBlockProvider(NodesGroup nodes, HttpClientFactory httpClientFactory, ServiceConfiguration serviceConfiguration, Network network)
+ public P2pBlockProvider(NodesGroup nodes, HttpClientFactory httpClientFactory, Network network)
{
Nodes = nodes;
HttpClientFactory = httpClientFactory;
- ServiceConfiguration = serviceConfiguration;
Network = network;
}
private NodesGroup Nodes { get; }
private HttpClientFactory HttpClientFactory { get; }
- private ServiceConfiguration ServiceConfiguration { get; }
private Network Network { get; }
private int NodeTimeouts { get; set; }

P2pBlockProvider: Remove unused `ServiceConfiguration` parameter