Skip to content

Commit

Permalink
inital attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
carbolymer committed Jul 8, 2024
1 parent 772537c commit 528e2c6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ runGenesisCreateTestNetDataCmd Cmd.GenesisCreateTestNetDataCmdArgs
, numUtxoKeys
, totalSupply
, delegatedSupply
, relays
, relays
, systemStart
, outputDir
} = do
Expand Down
2 changes: 1 addition & 1 deletion cardano-cli/src/Cardano/CLI/EraBased/Run/Genesis.hs
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ runGenesisCreateCardanoCmd
overrideShelleyGenesis t = t
{ sgNetworkMagic = unNetworkMagic (toNetworkMagic network)
, sgNetworkId = toShelleyNetwork network
, sgActiveSlotsCoeff = fromMaybe (error $ "Could not convert from Rational: " ++ show slotCoeff) $ L.boundRational slotCoeff
, sgActiveSlotsCoeff = unsafeBoundedRational slotCoeff
, sgSecurityParam = unBlockCount security
, sgUpdateQuorum = fromIntegral $ ((numGenesisKeys `div` 3) * 2) + 1
, sgEpochLength = EpochSize $ floor $ (fromIntegral (unBlockCount security) * 10) / slotCoeff
Expand Down
7 changes: 4 additions & 3 deletions cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ runQueryProtocolParametersCmd
AnyCardanoEra era <- firstExceptT QueryCmdAcquireFailure $ determineEra localNodeConnInfo
sbe <- forEraInEon @ShelleyBasedEra era (left QueryCmdByronEra) pure
let qInMode = QueryInEra $ QueryInShelleyBasedEra sbe Api.QueryProtocolParameters
pp <- firstExceptT QueryCmdConvenienceError
$ executeQueryAnyMode localNodeConnInfo qInMode
pp <- executeQueryAnyMode localNodeConnInfo qInMode
& modifyError QueryCmdConvenienceError
writeProtocolParameters sbe mOutFile pp
where
writeProtocolParameters
Expand Down Expand Up @@ -654,7 +654,8 @@ runQueryTxMempoolCmd

localQuery <- case query of
TxMempoolQueryTxExists tx -> do
AnyCardanoEra era <- modifyError QueryCmdAcquireFailure (determineEra localNodeConnInfo)
AnyCardanoEra era <- determineEra localNodeConnInfo
& modifyError QueryCmdAcquireFailure
pure $ LocalTxMonitoringQueryTx $ TxIdInMode era tx
TxMempoolQueryNextTx -> pure LocalTxMonitoringSendNextTx
TxMempoolQueryInfo -> pure LocalTxMonitoringMempoolInformation
Expand Down
1 change: 1 addition & 0 deletions cardano-cli/src/Cardano/CLI/Run/Debug/LogEpochState.hs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ runLogEpochStateCmd
LBS.appendFile outputFilePath ""

result <- runExceptT $ foldEpochState
AlonzoEraOnwardsConway -- FIXME: get this from somewhere, prolly query the node beforehand for an era
configurationFile
nodeSocketPath
Api.QuickValidation
Expand Down

0 comments on commit 528e2c6

Please sign in to comment.