wip, debug

This commit is contained in:
Dmitry Zuikov 2023-07-18 11:54:38 +03:00
parent 73d0fc6162
commit a1f16efec3
1 changed files with 3 additions and 0 deletions

View File

@ -380,6 +380,9 @@ refChanUpdateProto self pc adapter msg = do
lift $ gossip msg
-- тут может так случиться, что propose еще нет
-- UDP вообще не гарантирует порядок доставки, а отправляем мы транзы
-- почти одновременно. ну или не успело записаться. и что делать?
tranBs <- MaybeT $ liftIO $ getBlock sto (fromHashRef hashRef)
tran <- MaybeT $ pure $ deserialiseOrFail @(RefChanUpdate e) tranBs & either (const Nothing) Just