mirror of https://github.com/voidlizard/hbs2
wip, debug
This commit is contained in:
parent
a1f16efec3
commit
d7a4d5cdf2
|
@ -383,6 +383,12 @@ refChanUpdateProto self pc adapter msg = do
|
|||
-- тут может так случиться, что propose еще нет
|
||||
-- UDP вообще не гарантирует порядок доставки, а отправляем мы транзы
|
||||
-- почти одновременно. ну или не успело записаться. и что делать?
|
||||
|
||||
here <- liftIO (hasBlock sto (fromHashRef hashRef)) <&> isJust
|
||||
|
||||
unless here do
|
||||
debug $ "NO PROPOSE TRANSACTION SAVED YET!" <+> pretty hashRef
|
||||
|
||||
tranBs <- MaybeT $ liftIO $ getBlock sto (fromHashRef hashRef)
|
||||
|
||||
tran <- MaybeT $ pure $ deserialiseOrFail @(RefChanUpdate e) tranBs & either (const Nothing) Just
|
||||
|
|
Loading…
Reference in New Issue