wip, log merging, debug-21

This commit is contained in:
Dmitry Zuikov 2023-07-19 21:00:08 +03:00
parent a73c2c4659
commit 40f05a0051
1 changed files with 11 additions and 1 deletions

View File

@ -543,7 +543,17 @@ refChanUpdateProto self pc adapter msg = do
forM_ trans $ \t -> do
lift $ refChanWriteTran adapter t
debug $ "WRITING TRANS" <+> pretty t
-- FIXME: remove-debug-shit
wtf <- MaybeT $ liftIO $ getBlock sto (fromHashRef t)
trr <- MaybeT $ pure $ deserialiseOrFail @(RefChanUpdate e) wtf & either (const Nothing) Just
let tp = case trr of
Propose{} -> "PROPOSE"
Accept{} -> "ACCEPT"
debug $ "WRITING TRANS" <+> pretty tp <+> pretty t
let pips = view refChanHeadPeers headBlock & HashMap.keys & HashSet.fromList
votes <- readTVarIO (view refChanRoundAccepts rcRound) <&> HashSet.fromList . HashMap.keys