Remove isMock.
MODIFY
WalletWasabi.Tests/UnitTests/Transactions/PayjoinTests.cs
WalletWasabi.Tests/UnitTests/Transactions/PayjoinTests.cs
@@ -464,7 +464,7 @@ namespace WalletWasabi.Tests.UnitTests.Transactions
}
var coinsView = new CoinsView(scoins);
- var bitcoinStore = new BitcoinStore(null!, new AllTransactionStoreMock(workFolderPath: ".", Network.Main), null!, isMock: true);
+ var bitcoinStore = new BitcoinStore(null!, new AllTransactionStoreMock(workFolderPath: ".", Network.Main), null!);
return new TransactionFactory(Network.Main, keyManager, coinsView, bitcoinStore, password, allowUnconfirmed);
}

MODIFY
WalletWasabi.Tests/UnitTests/Transactions/TransactionFactoryTests.cs
WalletWasabi.Tests/UnitTests/Transactions/TransactionFactoryTests.cs
@@ -217,7 +217,7 @@ namespace WalletWasabi.Tests.UnitTests.Transactions
}
var coinsView = new CoinsView(scoins.ToArray());
- var bitcoinStore = new BitcoinStore(null!, new AllTransactionStoreMock(workFolderPath: ".", Network.Main), null!, isMock: true);
+ var bitcoinStore = new BitcoinStore(null!, new AllTransactionStoreMock(workFolderPath: ".", Network.Main), null!);
var transactionFactory = new TransactionFactory(Network.Main, keyManager, coinsView, bitcoinStore, password);
// Two 0.9btc coins are enough
@@ -621,7 +621,7 @@ namespace WalletWasabi.Tests.UnitTests.Transactions
}
}
var coinsView = new CoinsView(scoins);
- var bitcoinStore = new BitcoinStore(indexStore: null!, new AllTransactionStoreMock(workFolderPath: ".", Network.Main), mempoolService: null!, isMock: true);
+ var bitcoinStore = new BitcoinStore(indexStore: null!, new AllTransactionStoreMock(workFolderPath: ".", Network.Main), mempoolService: null!);
var transactionFactory = new TransactionFactory(Network.Main, keyManager, coinsView, bitcoinStore, password);
return new TransactionFactory(Network.Main, keyManager, coinsView, bitcoinStore, password, allowUnconfirmed);

MODIFY
WalletWasabi/Stores/BitcoinStore.cs
WalletWasabi/Stores/BitcoinStore.cs
@@ -18,22 +18,12 @@ namespace WalletWasabi.Stores
public BitcoinStore(
IndexStore indexStore,
AllTransactionStore transactionStore,
- MempoolService mempoolService,
- bool isMock = false)
- {
- if (isMock)
+ MempoolService mempoolService)
{
IndexStore = indexStore;
TransactionStore = transactionStore;
MempoolService = mempoolService;
}
- else
- {
- IndexStore = Guard.NotNull(nameof(indexStore), indexStore);
- TransactionStore = Guard.NotNull(nameof(transactionStore), transactionStore);
- MempoolService = Guard.NotNull(nameof(mempoolService), mempoolService);
- }
- }
public bool IsInitialized { get; private set; }

Remove isMock.