Skip to content
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

Update dependencied to Node-8.2.0-pre #1476

Merged
merged 6 commits into from
Aug 9, 2023
Merged

Update dependencied to Node-8.2.0-pre #1476

merged 6 commits into from
Aug 9, 2023

Conversation

kderme
Copy link
Contributor

@kderme kderme commented Aug 5, 2023

Description

Allows db-sync to follow sanchonet.

Checklist

  • Commit sequence broadly makes sense
  • Commits have useful messages
  • New tests are added if needed and existing tests are updated
  • Any changes are noted in the changelog
  • Code is formatted with fourmolu on version 0.10.1.0 (which can be run with scripts/fourmolize.sh)
  • Self-reviewed the diff

Migrations

  • The pr causes a breaking change of type a,b or c
  • If there is a breaking change, the pr includes a database migration and/or a fix process for old values, so that upgrade is possible
  • Resyncing and running the migrations provided will result in the same database semantically

If there is a breaking change, especially a big one, please add a justification here. Please elaborate
more what the migration achieves, what it cannot achieve or why a migration is not possible.

@kderme kderme changed the title Sanchonet-0-0-1 Update dependencied to Node-8.2.0-pre Aug 7, 2023
@kderme kderme marked this pull request as ready for review August 7, 2023 07:59
@kderme kderme requested review from a team as code owners August 7, 2023 07:59
Cmdv
Cmdv previously approved these changes Aug 7, 2023
Copy link
Contributor

@Cmdv Cmdv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉 Just a couple of basic questions and some failing tests

, DCertDeleg $ DeRegKey $ unregisteredStakeCredentials !! 2
, DCertDeleg $ Delegate $ Delegation (unregisteredStakeCredentials !! 1) (unregisteredPools !! 2)
, DCertMir $
[ ShelleyTxCertDelegCert $ ShelleyRegCert $ Prelude.head unregisteredStakeCredentials
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checking I assume there will never be a scenario where the list is empty in the tests, since there is the use of head?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes unregisteredStakeCredentials is hardcoded with 3 elements

@@ -131,7 +133,7 @@ mkProtocolInfoCardano ge shelleyCred =
(Consensus.ProtocolTransitionParamsShelleyBased () $ dncMaryHardFork dnc)
(Consensus.ProtocolTransitionParamsShelleyBased alonzoGenesis $ dncAlonzoHardFork dnc)
(Consensus.ProtocolTransitionParamsShelleyBased () $ dncBabbageHardFork dnc)
(Consensus.ProtocolTransitionParamsShelleyBased (ConwayGenesis (GenDelegs mempty)) Consensus.TriggerHardForkNever) -- TODO: Conway Fix
(Consensus.ProtocolTransitionParamsShelleyBased (ConwayGenesis (GenDelegs mempty)) (Consensus.TriggerHardForkAtEpoch (EpochNo 34))) -- TODO: Conway Fix
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe a little note as to why hard fork at epoch 34?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this needs to change. It's hardcoded 34 for sanchonet, but needs to be parsed from the config file before this is merged.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool thanks, so it's usually an option in the config file

@sgillespie
Copy link
Contributor

LGTM, except for the CI failures. I believe this is related to the updated dependencies and not the changes introduced here.

kderme and others added 2 commits August 8, 2023 17:26
This will allow us to update hackage without bringing in nixpkgs
updates from haskell.nix
@kderme kderme merged commit c73f53f into master Aug 9, 2023
@iohk-bors iohk-bors bot deleted the sancho-0-0-1 branch August 9, 2023 07:05
@sgillespie
Copy link
Contributor

It looks like there were some hlint failures: https://ci.iog.io/build/567612/nixlog/89

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants