mirror of https://github.com/voidlizard/hbs2
ip, log merging, debug-25
This commit is contained in:
parent
9c1c3110d8
commit
7d55e9984e
|
@ -436,6 +436,12 @@ logMergeProcess env q = do
|
||||||
let sto = mergeSto e
|
let sto = mergeSto e
|
||||||
hd <- readTVarIO (mergeHeads e) <&> HashMap.lookup h
|
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
|
case hd of
|
||||||
Just x -> pure (Just x)
|
Just x -> pure (Just x)
|
||||||
Nothing -> runMaybeT do
|
Nothing -> runMaybeT do
|
||||||
|
|
Loading…
Reference in New Issue