fixed (?) wtf

This commit is contained in:
Dmitry Zuikov 2023-10-18 16:02:32 +03:00
parent e061a2793a
commit 27e2a6f761
1 changed files with 4 additions and 1 deletions

View File

@ -24,8 +24,11 @@ findMissedBlocks sto href = do
walkMerkle (fromHashRef href) (lift . getBlock sto) $ \(hr :: Either (Hash HbSync) [HashRef]) -> do
case hr of
-- FIXME: investigate-this-wtf
Left hx -> S.yield (HashRef hx)
Left hx | fromHashRef href /= hx -> S.yield (HashRef hx)
| otherwise -> pure ()
Right (hrr :: [HashRef]) -> do
forM_ hrr $ \hx -> runMaybeT do
blk <- lift $ getBlock sto (fromHashRef hx)