Use ToList() to prevent the collection that is being iterated to get modified
MODIFY
WalletWasabi/Wallets/Wallet.cs
WalletWasabi/Wallets/Wallet.cs
@@ -473,7 +473,7 @@ namespace WalletWasabi.Wallets
private async Task ProcessFilterModelAsync(FilterModel filterModel, CancellationToken cancel)
{
- var matchFound = filterModel.Filter.MatchAny(KeyManager.GetPubKeyScriptBytes(), filterModel.FilterKey);
+ var matchFound = filterModel.Filter.MatchAny(KeyManager.GetPubKeyScriptBytes().ToList(), filterModel.FilterKey);
if (matchFound)
{
Block currentBlock = await BlockProvider.GetBlockAsync(filterModel.Header.BlockHash, cancel).ConfigureAwait(false); // Wait until not downloaded.

Use ToList() to prevent the collection that is being iterated to get modified