-
Notifications
You must be signed in to change notification settings - Fork 86
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
[CAD-3383] Bring db analyser back to life #3337
[CAD-3383] Bring db analyser back to life #3337
Conversation
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.
Some minor feedback, and a note wherein I question the existing Args
code.
92e5375
to
f88a26d
Compare
@nfrisby I've went through the comments, I've applied two of your suggestions, for the other two I've left my comments. Please have a look . |
@dnadales @jasagredo @nfrisby second look? :) |
{-# LANGUAGE TypeFamilies #-} | ||
|
||
{-# OPTIONS_GHC -Wno-orphans #-} | ||
module Block.Alonzo ( |
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.
Would it make sense to refer to IntersectMBO/cardano-ledger#2452 in the comments and explain that this module was copied from the node, why it was copied, and that it'll be removed from consensus once 2452 is solved?
This instances was copied from node. But it should really live in ledger spec. Same as ShelleyGenesis does. This should be addressed in the near future.
Once we have AlonzoGenesis FromJSON, providing it to mkCardanoProtocolInfo is just a matter of reading the configuration file provided by the user
To keep code consistent with previous eras
be6221c
to
bec44a4
Compare
@dnadales it works on Alonzo chain, checked [x] |
bors merge |
Build succeeded: |
@@ -114,15 +113,15 @@ mkCardanoProtocolInfo genesisByron signatureThreshold genesisShelley genesisAlon | |||
, shelleyBasedLeaderCredentials = [] | |||
} | |||
ProtocolParamsShelley { | |||
shelleyProtVer = ProtVer 2 0 | |||
shelleyProtVer = ProtVer 3 0 |
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 job debugging these 👏
Add FromJSON instance to AlonzoGenesis
This instances was copied from node. But it should really live in
ledger spec. Same as ShelleyGenesis does. This should be addressed in
the near future. Issue was created Move AlonzoGenesis From/ToJSON instances from cardano-node to cardano-ledger-specs cardano-ledger#2452
Bring db-analyser back to life
Once we have AlonzoGenesis FromJSON, providing it to
mkCardanoProtocolInfo is just a matter of reading the configuration
file provided by the user
Examples usage:
Not tested with Alonzo yet, because the mainnet chain (that this tool was tested with) does not yet hold alonzo blocks.