Add TransactionStore to BitcoinStore
MODIFY
WalletWasabi/Stores/BitcoinStore.cs
WalletWasabi/Stores/BitcoinStore.cs
@@ -7,6 +7,7 @@ using System.Threading.Tasks;
using WalletWasabi.Helpers;
using WalletWasabi.Logging;
using WalletWasabi.Mempool;
+using WalletWasabi.Transactions;
namespace WalletWasabi.Stores
{
@@ -20,6 +21,7 @@ namespace WalletWasabi.Stores
private Network Network { get; set; }
public IndexStore IndexStore { get; private set; }
+ public AllTransactionStore TransactionStore { get; private set; }
public HashChain HashChain { get; private set; }
public MempoolService MempoolService { get; private set; }
@@ -39,10 +41,20 @@ namespace WalletWasabi.Stores
Network = Guard.NotNull(nameof(network), network);
IndexStore = new IndexStore();
- var indexStoreFolderPath = Path.Combine(WorkFolderPath, Network.ToString(), "IndexStore");
+ TransactionStore = new AllTransactionStore();
+ var networkWorkFolderPath = Path.Combine(WorkFolderPath, Network.ToString());
+ var indexStoreFolderPath = Path.Combine(networkWorkFolderPath, "IndexStore");
HashChain = new HashChain();
MempoolService = new MempoolService();
+ var initTasks = new[]
+ {
+ IndexStore.InitializeAsync(indexStoreFolderPath, Network, HashChain),
+ TransactionStore.InitializeAsync(networkWorkFolderPath, Network)
+ };
+
+ await Task.WhenAll(initTasks).ConfigureAwait(false);
+
await IndexStore.InitializeAsync(indexStoreFolderPath, Network, HashChain).ConfigureAwait(false);
}
}

Add TransactionStore to BitcoinStore