fix TransactionHistoryBuilder
MODIFY
WalletWasabi/Services/TransactionHistoryBuilder.cs
WalletWasabi/Services/TransactionHistoryBuilder.cs
@@ -29,7 +29,8 @@ namespace WalletWasabi.Services
?? new Dictionary<Height, DateTimeOffset>();
foreach (SmartCoin coin in walletService.Coins)
{
- if (!walletService.BitcoinStore.TransactionStore.TryGetTransaction(coin.SpenderTransactionId, out SmartTransaction foundTransaction))
+ var spenderTxId = coin.SpenderTransactionId;
+ if (spenderTxId is null || !walletService.BitcoinStore.TransactionStore.TryGetTransaction(spenderTxId, out SmartTransaction foundTransaction))
{
continue;
}

MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -451,7 +451,7 @@ namespace WalletWasabi.Services
return clusters;
}
- private void ProcessBlock(Height height, Block block, IEnumerable<int> filterByTxIndexes = null, IEnumerable<SmartTransaction> skeletonBlock = null)
+ private void ProcessBlock(Height height, Block block = null, IEnumerable<int> filterByTxIndexes = null, IEnumerable<SmartTransaction> skeletonBlock = null)
{
lock (TransactionProcessingLock)
{

fix TransactionHistoryBuilder