Skip to content

Commit 4673b2d

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 9f0f5d1 + 91317d4 commit 4673b2d

File tree

4 files changed

+46
-40
lines changed

4 files changed

+46
-40
lines changed

cardano-testnet/src/Testnet/Components/Configuration.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ createSPOGenesisAndFiles (NumPools numPoolNodes) era shelleyGenesis (TmpAbsolute
138138
, "--supply-delegated", "1000000000000"
139139
, "--stake-delegators", show @Int numStakeDelegators
140140
, "--utxo-keys", show numSeededUTxOKeys
141+
, "--drep-keys", "3"
141142
, "--start-time", DTC.formatIso8601 startTime
142143
, "--out-dir", tempAbsPath'
143144
]

cardano-testnet/src/Testnet/Start/Cardano.hs

Lines changed: 39 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -113,38 +113,48 @@ cardanoTestnetDefault opts conf = do
113113
-- > ├── configuration.yaml
114114
-- > ├── current-stake-pools.json
115115
-- > ├── delegate-keys
116-
-- > │   ├── delegate{1,2,3}.counter
117-
-- > │   ├── delegate{1,2,3}.kes.{skey,vkey}
118-
-- > │   ├── delegate{1,2,3}.{kes,vrf}.{skey,vkey}
119-
-- > │   └── opcert{1,2,3}.cert
120-
-- > ├── genesis.alonzo.spec.json
121-
-- > ├── genesis.conway.spec.json
116+
-- > │   ├── delegate{1,2,3}
117+
-- > │   │   ├── kes.{skey,vkey}
118+
-- > │   │   ├── key.{skey,vkey}
119+
-- > │   │   ├── opcert.{cert,counter}
120+
-- > │   │   └── vrf.{skey,vkey}
121+
-- > │   └── README.md
122+
-- > ├── drep-keys
123+
-- > │   └── drep{1,2,3}
124+
-- > │   └── drep.{skey,vkey}
125+
-- > ├── genesis.{alonzo,conway}.spec.json
122126
-- > ├── genesis-keys
123-
-- > │   ── genesis{1,2,3}.{skey,vkey}
124-
-- > ── genesis.spec.json
125-
-- > ── node-spo{1,2,3}
126-
-- > │   ├── byron-delegate.key
127-
-- > │   ── byron-delegation.cert
128-
-- > │   ── db
129-
-- > │   │   └── ...
130-
-- > │   ├── kes.skey
131-
-- > │   ├── opcert.cert
132-
-- > │   ├── port
133-
-- > │   ├── topology.json
134-
-- > │   ── vrf.skey
135-
-- > ├── pools
136-
-- > │   ├── cold{1,2,3}.{skey,vkey}
137-
-- > │   ├── kes{1,2,3}.vkey
138-
-- > │   ├── opcert{1,2,3}.counter
139-
-- > │   ── staking-reward{1,2,3}.{skey,vkey}
140-
-- > │   └── vrf{1,2,3}.vkey
127+
-- > │   ── genesis{1,2,3}
128+
-- > │   │   └── key.{skey,vkey}
129+
-- > │   └── README.md
130+
-- > ├── logs
131+
-- > │   ── pool3
132+
-- > │   ── {stderr,stdout}.log
133+
-- > ── module
134+
-- > ├── pools-keys
135+
-- > │   ├── pool{1,2,3}
136+
-- > │   │   ├── byron-delegate.key
137+
-- > │   │   ├── byron-delegation.cert
138+
-- > │   │   ├── cold.{skey,vkey}
139+
-- > │   │   ├── kes.{skey,vkey}
140+
-- > │   │   ├── opcert.{cert,counter}
141+
-- > │   │   ├── staking-reward.{skey,vkey}
142+
-- > │   │   ├── topology.json
143+
-- > │   │   └── vrf.{skey,vkey}
144+
-- > │   └── README.md
141145
-- > ├── shelley
142-
-- > │   ├── genesis.{alonzo,conway}.json
143-
-- > │   └── genesis.json
146+
-- > │   └── genesis.{alonzo,conway,shelley}.json
144147
-- > ├── socket
145-
-- > │   └── node-spo{1,2,3}
146-
-- > └── utxo-keys
147-
-- >    └── utxo{1,2,3}.{addr,skey,vkey}
148+
-- > │   └── pool{1,2,3}
149+
-- > │   └── sock
150+
-- > ├── stake-delegators
151+
-- > │   └── delegator{1,2,3}
152+
-- > │   ├── payment.{skey,vkey}
153+
-- > │   └── staking.{skey,vkey}
154+
-- > └─── utxo-keys
155+
-- >    ├── README.md
156+
-- >    └── utxo{1,2,3}
157+
-- >    └── utxo.{addr,skey,vkey}
148158
cardanoTestnet :: ()
149159
=> CardanoTestnetOptions -- ^ The options to use. Must be consistent with the genesis files.
150160
-> Conf

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli/Babbage/LeadershipSchedule.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ import Testnet.Property.Assert
5959
import qualified Testnet.Property.Utils as H
6060
import Testnet.Runtime
6161

62+
-- | Execute me with:
63+
-- @DISABLE_RETRIES=1 cabal test cardano-testnet-test --test-options '-p "/leadership-schedule/"'@
6264
hprop_leadershipSchedule :: Property
6365
hprop_leadershipSchedule = H.integrationRetryWorkspace 2 "babbage-leadership-schedule" $ \tempAbsBasePath' -> do
6466
H.note_ SYS.os

cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/ProposeNewConstitution.hs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ newtype AdditionalCatcher
4444
= IOE IOException
4545
deriving Show
4646

47-
47+
-- | Execute me with:
48+
-- @DISABLE_RETRIES=1 cabal test cardano-testnet-test --test-options '-p "/ProposeAndRatifyNewConstitution/"'@
4849
hprop_ledger_events_propose_new_constitution :: Property
4950
hprop_ledger_events_propose_new_constitution = H.integrationWorkspace "propose-new-constitution" $ \tempAbsBasePath' -> do
5051
-- Start a local test net
@@ -110,18 +111,10 @@ hprop_ledger_events_propose_new_constitution = H.integrationWorkspace "propose-n
110111
}
111112

112113
let drepVkeyFp :: Int -> FilePath
113-
drepVkeyFp n = gov </> "drep-keys" <>"drep" <> show n <> ".vkey"
114+
drepVkeyFp n = tempAbsPath' </> "drep-keys" </> ("drep" <> show n) </> "drep.vkey"
114115

115116
drepSKeyFp :: Int -> FilePath
116-
drepSKeyFp n = gov </> "drep-keys" <>"drep" <> show n <> ".skey"
117-
118-
-- Create DReps -- TODO: Refactor with shelleyKeyGen
119-
forM_ [1..3] $ \n -> do
120-
H.execCli' execConfig
121-
[ "conway", "governance", "drep", "key-gen"
122-
, "--verification-key-file", drepVkeyFp n
123-
, "--signing-key-file", drepSKeyFp n
124-
]
117+
drepSKeyFp n = tempAbsPath' </> "drep-keys" </> ("drep" <> show n) </> "drep.skey"
125118

126119
-- Create Drep registration certificates
127120
let drepCertFile :: Int -> FilePath

0 commit comments

Comments
 (0)