This commit is contained in:
Dmitry Zuikov 2023-07-18 11:38:38 +03:00
parent 66d7444198
commit 940248e99b
1 changed files with 2 additions and 2 deletions

View File

@ -377,8 +377,6 @@ refChanUpdateProto self pc adapter msg = do
lift $ gossip msg
lift $ refChanUpdateProto True pc adapter msg
tranBs <- MaybeT $ liftIO $ getBlock sto (fromHashRef hashRef)
tran <- MaybeT $ pure $ deserialiseOrFail @(RefChanUpdate e) tranBs & either (const Nothing) Just
@ -439,6 +437,8 @@ refChanUpdateProto self pc adapter msg = do
debug $ "CLOSING ROUND" <+> pretty hashRef
pure ()
lift $ refChanUpdateProto True pc adapter msg
-- TODO: expire-round-if-all-confirmations
-- если получили accept от всех пиров
-- закрываем раунд досрочно.