ip, log merging, debug-25

This commit is contained in:
Dmitry Zuikov 2023-07-20 08:21:20 +03:00
parent 9c1c3110d8
commit 7d55e9984e
1 changed files with 6 additions and 0 deletions

View File

@ -436,6 +436,12 @@ logMergeProcess env q = do
let sto = mergeSto e
hd <- readTVarIO (mergeHeads e) <&> HashMap.lookup h
here <- liftIO $ hasBlock sto (fromHashRef h) <&> isJust
unless here do
debug $ "head is missed:" <+> pretty h
pure ()
case hd of
Just x -> pure (Just x)
Nothing -> runMaybeT do