mirror of https://github.com/voidlizard/hbs2
wip
This commit is contained in:
parent
66d7444198
commit
940248e99b
|
@ -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 от всех пиров
|
||||
-- закрываем раунд досрочно.
|
||||
|
|
Loading…
Reference in New Issue