Skip to content

Commit

Permalink
Fix testnet tests with newer ledger
Browse files Browse the repository at this point in the history
  • Loading branch information
carbolymer committed Apr 2, 2024
1 parent 08bed1f commit 2fbd919
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions cardano-testnet/files/data/conway/genesis.conway.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"govActionDeposit": 1000000000,
"dRepDeposit": 2000000,
"dRepActivity": 20,
"minFeeRefScriptCostPerByte": 0,
"constitution": {
"anchor": {
"url": "",
Expand Down
3 changes: 2 additions & 1 deletion cardano-testnet/src/Testnet/Defaults.hs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ defaultAlonzoGenesis = do
, 1, 1, 69522, 11687, 0, 1, 60091, 32, 196500, 453240, 220, 0, 1, 1, 196500, 453240, 220, 0, 1, 1, 1159724, 392670, 0, 2, 806990
, 30482, 4, 1927926, 82523, 4, 265318, 0, 4, 0, 85931, 32, 205665, 812, 1, 1, 41182
, 32, 212342, 32, 31220, 32, 32696, 32, 43357, 32, 32247, 32, 38314, 32, 35190005, 10, 57996947, 18975, 10, 39121781, 32260, 10
, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 -- FIXME GARBAGE VALUE
]

defaultConwayGenesis :: ConwayGenesis StandardCrypto
Expand All @@ -181,7 +182,7 @@ defaultConwayGenesis =
, ucppGovActionDeposit = Coin 1_000_000
, ucppDRepDeposit = Coin 1_000_000
, ucppDRepActivity = EpochInterval 100
, ucppMinFeeRefScriptCostPerByte = undefined
, ucppMinFeeRefScriptCostPerByte = 0 %! 1 -- FIXME GARBAGE VALUE
}
drepVotingThresholds = DRepVotingThresholds
{ dvtMotionNoConfidence = 0 %! 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ getConstitutionProposal nodeConfigFile socketPath maxEpoch = do
. L.esLStateL
. L.lsUTxOStateL
. L.utxosGovStateL
. L.cgProposalsL
. L.cgsProposalsL
govActions = Map.toList $ L.proposalsActionsMap proposals
case map (second L.gasAction) govActions of
(govActionId, L.NewConstitution _ _) : _ -> do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ prop_check_if_treasury_is_growing = H.integrationRetryWorkspace 0 "growing-treas
H.noteIO (IO.canonicalizePath $ tempAbsPath' </> socketPath')

(_condition, treasuryValues) <- H.leftFailM . runExceptT $
Api.foldEpochState (File configurationFile) (Api.File socketPathAbs) Api.QuickValidation 10 M.empty handler
Api.foldEpochState (File configurationFile) (Api.File socketPathAbs) Api.QuickValidation (EpochNo 10) M.empty handler
H.note_ $ "treasury for last 5 epochs: " <> show treasuryValues

let treasuriesSortedByEpoch =
Expand Down
1 change: 1 addition & 0 deletions configuration/cardano/mainnet-conway-genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"govActionDeposit": 1000000000,
"dRepDeposit": 2000000,
"dRepActivity": 20,
"minFeeRefScriptCostPerByte": 0,
"constitution": {
"anchor": {
"url": "",
Expand Down
1 change: 1 addition & 0 deletions configuration/cardano/shelley_qa-conway-genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"govActionDeposit": 1000000000,
"dRepDeposit": 2000000,
"dRepActivity": 20,
"minFeeRefScriptCostPerByte": 0,
"constitution": {
"anchor": {
"url": "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"govActionDeposit": 1000000000,
"dRepDeposit": 2000000,
"dRepActivity": 20,
"minFeeRefScriptCostPerByte": 0,
"constitution": {
"anchor": {
"url": "",
Expand Down
1 change: 1 addition & 0 deletions scripts/babbage/conway-babbage-test-genesis.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"govActionDeposit": 1000000000,
"dRepDeposit": 2000000,
"dRepActivity": 20,
"minFeeRefScriptCostPerByte": 0,
"constitution": {
"anchor": {
"url": "",
Expand Down

0 comments on commit 2fbd919

Please sign in to comment.