Skip to content

Commit

Permalink
cardano: introduce active Shelley stake pools in the ThreadNet tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrisby committed Aug 10, 2020
1 parent 8dcc6d4 commit 0d9410d
Show file tree
Hide file tree
Showing 13 changed files with 531 additions and 109 deletions.
4 changes: 2 additions & 2 deletions .buildkite/slow-ThreadNet-tests.sh
Expand Up @@ -24,10 +24,10 @@ set -euo pipefail
# overhead and also more reliable percentages in their QuickCheck statistics.
rows=(
# From the slowest individual invocation ...
'1 Cardano 5000' # ~45 minutes per invocation
'1 Cardano 2000' # ~35 minutes per invocation
'2 RealTPraos 200' # ~30 minutes per invocation (but high variance)
'4 RealTPraos 100' # ~15 minutes per invocation (but high variance)
'5 Cardano 500' # ~5 minutes per invocation
'5 Cardano 300' # ~5 minutes per invocation
# ... to fastest individual invocation
#
# And the number of invocations is non-decreasing.
Expand Down
Expand Up @@ -8,4 +8,4 @@ import Test.ThreadNet.TxGen
instance TxGen ByronBlock where
-- We don't generate transactions for 'ByronBlock', but we do for
-- 'DualByronBlock'.
testGenTxs _ _ _ _ _ = return []
testGenTxs _ _ _ _ _ _ = return []
Expand Up @@ -259,7 +259,7 @@ realPBftParams ByronSpecGenesis{..} =
-------------------------------------------------------------------------------}

instance TxGen DualByronBlock where
testGenTxs _numCoreNodes curSlotNo cfg () = \st -> do
testGenTxs _coreNodeId _numCoreNodes curSlotNo cfg () = \st -> do
n <- choose (0, 20)
go [] n $ applyChainTick (configLedger cfg) curSlotNo st
where
Expand Down
Expand Up @@ -87,6 +87,7 @@ test-suite test
, bytestring >=0.10 && <0.11
, cardano-binary
, cardano-crypto-class
, cardano-crypto-wrapper
, cardano-ledger
, cardano-ledger-test
, cardano-slotting
Expand Down

0 comments on commit 0d9410d

Please sign in to comment.