From 68058feb736b54cc630bdcb7e5b32e74ee1cc9a6 Mon Sep 17 00:00:00 2001 From: Alain Brenzikofer Date: Wed, 23 Sep 2026 11:42:17 +0200 Subject: [PATCH] cut comments --- src/Simplex/Chat/Store/Wallets.hs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Simplex/Chat/Store/Wallets.hs b/src/Simplex/Chat/Store/Wallets.hs index 75b7f64361..bd841b2178 100644 --- a/src/Simplex/Chat/Store/Wallets.hs +++ b/src/Simplex/Chat/Store/Wallets.hs @@ -145,8 +145,7 @@ setAccountUser db sId userId n = accountHeldBy :: DB.Connection -> SeedId -> UserId -> AccountIndex -> IO Bool accountHeldBy db sId userId n = (== Just (Just userId)) <$> accountUser db sId n --- | What a scan found: the accounts in use, bound to the profile that ran it because the chain does not say whose they are, and the counter past them. --- The counter is taken from the recorded accounts, not from the scan alone, so it never lands on one another profile already holds, and it only ever rises. +-- | The accounts a scan found, bound to the profile that ran it, and the counter raised past every account recorded, not just those found. recordScan :: DB.Connection -> SeedId -> UserId -> [AccountIndex] -> IO () recordScan db sId userId inUse = do mapM_ insertScanned inUse