@@ -66,7 +66,7 @@ _exampleSpec = GenSpec
66
66
{ accounts = 1
67
67
, accountSpec = AccountSpec { addresses = 100 }
68
68
, fakeUtxoCoinDistr = RangeDistribution { amount = 1000 , range = 100 }
69
- , fakeTxsHistory = SimpleTxsHistory { txsCount = 100 , numOutgoingAddress = 3 }
69
+ , fakeTxsHistory = SimpleTxsHistory 100 3
70
70
}
71
71
, wallets = 1
72
72
}
@@ -146,11 +146,10 @@ data FakeTxsHistory
146
146
= NoHistory
147
147
-- ^ Do not generate fake history.
148
148
| SimpleTxsHistory
149
- { txsCount :: ! Integer
149
+ ! Integer
150
150
-- ^ Number of txs we want to generate.
151
- , numOutgoingAddress :: ! NumOfOutgoingAddresses
151
+ ! NumOfOutgoingAddresses
152
152
-- ^ Number of outgoing addreses of a single @Tx@.
153
- }
154
153
-- ^ Simple tx history generation.
155
154
-- TODO(ks): For now KISS, we can add more generation strategies.
156
155
deriving (Show , Eq , Generic )
@@ -237,8 +236,8 @@ generateWalletDB CLI{..} spec@GenSpec{..} = do
237
236
238
237
-- | Here we generate fake txs. For now it's a simple arbitrary generation.
239
238
generateFakeTxs :: FakeTxsHistory -> AccountId -> UberMonad ()
240
- generateFakeTxs NoHistory _ = pure ()
241
- generateFakeTxs SimpleTxsHistory { .. } aId = do
239
+ generateFakeTxs NoHistory _ = pure ()
240
+ generateFakeTxs ( SimpleTxsHistory txsCount numOutgoingAddress) aId = do
242
241
-- Get the number of txs we need to generate.
243
242
let txsNumber = fromIntegral txsCount
244
243
0 commit comments