feat: implement commitment trees
This commit is contained in:
parent
42f6b6becb
commit
5fbb5c865b
1 changed files with 28 additions and 31 deletions
|
@ -878,7 +878,6 @@ scanZebra dbP zHost zPort b eChan znet = do
|
||||||
liftIO $ BC.writeBChan eChan $ TickMsg "startSync"
|
liftIO $ BC.writeBChan eChan $ TickMsg "startSync"
|
||||||
return ()
|
return ()
|
||||||
else do
|
else do
|
||||||
liftIO $ BC.writeBChan eChan $ TickVal 1.0
|
|
||||||
liftIO $ BC.writeBChan eChan $ TickMsg "startSync"
|
liftIO $ BC.writeBChan eChan $ TickMsg "startSync"
|
||||||
where
|
where
|
||||||
processBlock :: ConnectionPool -> Float -> Int -> IO ()
|
processBlock :: ConnectionPool -> Float -> Int -> IO ()
|
||||||
|
@ -928,8 +927,7 @@ appEvent (BT.AppEvent t) = do
|
||||||
case s ^. displayBox of
|
case s ^. displayBox of
|
||||||
AddrDisplay -> return ()
|
AddrDisplay -> return ()
|
||||||
MsgDisplay -> do
|
MsgDisplay -> do
|
||||||
if m == "startSync"
|
when (m == "startSync") $ do
|
||||||
then do
|
|
||||||
selWallet <-
|
selWallet <-
|
||||||
do case L.listSelectedElement $ s ^. wallets of
|
do case L.listSelectedElement $ s ^. wallets of
|
||||||
Nothing -> do
|
Nothing -> do
|
||||||
|
@ -957,7 +955,6 @@ appEvent (BT.AppEvent t) = do
|
||||||
BT.put ns
|
BT.put ns
|
||||||
BT.modify $ set msg ""
|
BT.modify $ set msg ""
|
||||||
BT.modify $ set displayBox BlankDisplay
|
BT.modify $ set displayBox BlankDisplay
|
||||||
else return ()
|
|
||||||
PhraseDisplay -> return ()
|
PhraseDisplay -> return ()
|
||||||
TxDisplay -> return ()
|
TxDisplay -> return ()
|
||||||
TxIdDisplay -> return ()
|
TxIdDisplay -> return ()
|
||||||
|
|
Loading…
Reference in a new issue