Skip to content
This repository was archived by the owner on Aug 18, 2020. It is now read-only.

Commit b1d32b3

Browse files
committed
WalletRestorationInfo comments.
1 parent b85567c commit b1d32b3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

wallet-new/src/Cardano/Wallet/Kernel/Internal.hs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,22 @@ import Cardano.Wallet.Kernel.Types (WalletId)
4848
Restoration status
4949
-------------------------------------------------------------------------------}
5050

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.
5157
data WalletRestorationInfo = WalletRestorationInfo
5258
{ _wriCurrentSlot :: FlatSlotId
59+
-- ^ The most recently restored slot
5360
, _wriTargetSlot :: FlatSlotId
61+
-- ^ The target slot; when restoration reaches this slot,
62+
-- it is finished and the wallet is up-to-date.
5463
, _wriThroughput :: MeasuredIn 'BlocksPerSecond BlockCount
64+
-- ^ Speed of restoration.
5565
, _wriCancel :: IO ()
66+
-- ^ The action that can be used to cancel the restoration task.
5667
}
5768

5869
{-------------------------------------------------------------------------------

0 commit comments

Comments
 (0)