wip, debug

This commit is contained in:
Dmitry Zuikov 2023-07-18 11:50:18 +03:00
parent 7e1c115056
commit 73d0fc6162
1 changed files with 5 additions and 2 deletions

View File

@ -299,7 +299,10 @@ refChanUpdateProto self pc adapter msg = do
Propose chan box -> do
guard =<< lift (refChanSubscribed adapter chan)
debug "RefChanUpdate/Propose"
let h0 = hashObject @HbSync (serialise msg)
debug $ "RefChanUpdate/Propose" <+> pretty h0
deferred proto do
-- проверили подпись пира
@ -389,7 +392,7 @@ refChanUpdateProto self pc adapter msg = do
(_, ptran) <- MaybeT $ pure $ unboxSignedBox0 @(ProposeTran e) @e proposed
debug $ "ACCEPT FROM:" <+> pretty (AsBase58 peerKey)
debug $ "ACCEPT FROM:" <+> pretty (AsBase58 peerKey) <+> pretty h0
-- compiler bug?
let (ProposeTran _ pbox) = ptran