-
Notifications
You must be signed in to change notification settings - Fork 720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use cardano-cli create-testnet-data instead of create-staked #5630
Conversation
cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli/KesPeriodInfo.hs
Outdated
Show resolved
Hide resolved
cardano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli/KesPeriodInfo.hs
Outdated
Show resolved
Hide resolved
f6b7c3e
to
c801e4e
Compare
convertToEraString (AnyCardanoEra e) = | ||
case e of | ||
ConwayEra -> "conway" | ||
BabbageEra -> "babbage" | ||
AlonzoEra -> "alonzo" | ||
MaryEra -> "mary" | ||
AllegraEra -> "allegra" | ||
ShelleyEra -> "shelley" | ||
ByronEra -> "byron" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use this instead:
convertToEraString (AnyCardanoEra e) = | |
case e of | |
ConwayEra -> "conway" | |
BabbageEra -> "babbage" | |
AlonzoEra -> "alonzo" | |
MaryEra -> "mary" | |
AllegraEra -> "allegra" | |
ShelleyEra -> "shelley" | |
ByronEra -> "byron" | |
convertToEraString = map toLower . docToString . pshow |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This actually gives "conwayera". I'm reverting to what I originally had.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. Sorry I meant convertToEraString = map toLower . docToString . pretty
.
@@ -89,7 +89,7 @@ isLinux = os == "linux" | |||
|
|||
-- | Submit the desired epoch to wait to. | |||
waitUntilEpoch | |||
:: (MonadCatch m, MonadIO m, MonadTest m) | |||
:: (MonadCatch m, MonadIO m, MonadTest m, HasCallStack) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! HasCallStack
is always useful.
...ano-testnet/test/cardano-testnet-test/Cardano/Testnet/Test/Cli/Babbage/LeadershipSchedule.hs
Outdated
Show resolved
Hide resolved
...et/test/cardano-testnet-test/Cardano/Testnet/Test/LedgerEvents/Gov/ProposeNewConstitution.hs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
e655ba3
to
6ef266e
Compare
ebee449
to
454a8d0
Compare
454a8d0
to
db7229b
Compare
create-testnet-data
…o be compatible with create-testnet-data
queryTip and waitUntilEpoch
db7229b
to
1d10a76
Compare
I rebased the branch. |
Description
Use
create-testnet-data
becausecreate-staked
was somewhat rushed intocardano-cli
. We plan to improve and potentially make breaking changes tocreate-testnet-data
and we want to avoid breaking existing functionality increate-staked
.Checklist
See Runnings tests for more details
CHANGELOG.md
for affected package.cabal
files are updatedhlint
. See.github/workflows/check-hlint.yml
to get thehlint
versionstylish-haskell
. See.github/workflows/stylish-haskell.yml
to get thestylish-haskell
versionghc-8.10.7
andghc-9.2.7
Note on CI
If your PR is from a fork, the necessary CI jobs won't trigger automatically for security reasons.
You will need to get someone with write privileges. Please contact IOG node developers to do this
for you.