wip, debug

This commit is contained in:
Dmitry Zuikov 2023-07-18 12:14:47 +03:00
parent 3c46a14aa5
commit 55679307f7
1 changed files with 2 additions and 5 deletions

View File

@ -300,10 +300,7 @@ refChanUpdateProto self pc adapter msg = do
guard =<< lift (refChanSubscribed adapter chan)
let h0 = hashObject @HbSync (serialise msg)
done <- liftIO (hasBlock sto h0) <&> isJust
guard (not done)
guard =<< liftIO (hasBlock sto h0 <&> isNothing)
debug $ "RefChanUpdate/Propose" <+> pretty h0
@ -371,7 +368,7 @@ refChanUpdateProto self pc adapter msg = do
let h0 = hashObject @HbSync (serialise msg)
-- guard =<< liftIO (hasBlock sto h0 <&> isJust)
guard =<< liftIO (hasBlock sto h0 <&> isNothing)
debug $ "RefChanUpdate/ACCEPT" <+> pretty h0