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

Fix costmodel creation in Alonzo Genesis #3101

Merged
merged 3 commits into from
Oct 29, 2022
Merged

Conversation

teodanciu
Copy link
Contributor

No description provided.

@teodanciu teodanciu force-pushed the td/fix-alonzo-genesis branch 2 times, most recently from 83038f9 to 295e71b Compare October 25, 2022 15:18
Copy link
Contributor

@JaredCorduan JaredCorduan left a comment

Choose a reason for hiding this comment

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

This looks great to me, thank you @teodanciu !

@Jimbo4350 - you should be aware that the CLI is going to need to use legacyParseCostModels for parsing the original alonozo genesis file.

@teodanciu teodanciu force-pushed the td/fix-alonzo-genesis branch 3 times, most recently from 3a25ab9 to 670f5b5 Compare October 26, 2022 15:03
@teodanciu teodanciu marked this pull request as ready for review October 26, 2022 15:05
instead of the plutus `ParamName` enum, since the latter returns
slightly different names for 6 parameters:

"blake2b_256-cpu-arguments-intercept",
"blake2b_256-cpu-arguments-slope",
"blake2b_256-memory-arguments",
"verifyEd25519Signature-cpu-arguments-intercept",
"verifyEd25519Signature-cpu-arguments-slope",
"verifyEd25519Signature-memory-arguments"

Instead of the names expected by the alonzo genesis file:
"blake2b-cpu-arguments-intercept",
"blake2b-cpu-arguments-slope",
"blake2b-memory-arguments",
"verifySignature-cpu-arguments-intercept",
"verifySignature-cpu-arguments-slope",
"verifySignature-memory-arguments"

Also, replace the `FromJSON` instance with a function, to make it clear
that it's a legacy implementation.

respectively.
which is needed for the future, non-legacy parsing of genesis and also
for current testing.
@teodanciu
Copy link
Contributor Author

Hello @Jimbo4350 - would you mind taking a look at this before we're merging it? Just to make sure it will work with your plans for testing.

Copy link
Contributor

@Jimbo4350 Jimbo4350 left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks 👍

@JaredCorduan JaredCorduan merged commit 82e5f8e into master Oct 29, 2022
@iohk-bors iohk-bors bot deleted the td/fix-alonzo-genesis branch October 29, 2022 15:57
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.

None yet

3 participants