This repository was archived by the owner on Aug 18, 2020. It is now read-only.
File tree 1 file changed +11
-0
lines changed
wallet-new/src/Cardano/Wallet/Kernel
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -48,11 +48,22 @@ import Cardano.Wallet.Kernel.Types (WalletId)
48
48
Restoration status
49
49
-------------------------------------------------------------------------------}
50
50
51
+ -- | Wallet restoration information
52
+ --
53
+ -- The restoration info tracks the progress of a background wallet
54
+ -- restoration task currently in progress. In addition to giving
55
+ -- visibility into a restoration task, it also provides an action
56
+ -- that can be used to cancel the background restoration task.
51
57
data WalletRestorationInfo = WalletRestorationInfo
52
58
{ _wriCurrentSlot :: FlatSlotId
59
+ -- ^ The most recently restored slot
53
60
, _wriTargetSlot :: FlatSlotId
61
+ -- ^ The target slot; when restoration reaches this slot,
62
+ -- it is finished and the wallet is up-to-date.
54
63
, _wriThroughput :: MeasuredIn 'BlocksPerSecond BlockCount
64
+ -- ^ Speed of restoration.
55
65
, _wriCancel :: IO ()
66
+ -- ^ The action that can be used to cancel the restoration task.
56
67
}
57
68
58
69
{- ------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments