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

readProtocolParametersSourceSpec should be able to retrieve the ProtocolParameters by querying local node #5052

Open
1 task
carbolymer opened this issue Apr 4, 2023 · 3 comments · Fixed by #5053 · May be fixed by #5054
Open
1 task
Assignees
Labels
comp: cardano-cli Stale type: enhancement An improvement on the existing functionality type: internal feature Non user-facing functionality

Comments

@carbolymer
Copy link
Contributor

carbolymer commented Apr 4, 2023

readProtocolParametersSourceSpec is supposed to derive a ProtocolParameters value from either JSON encoded ProtocolParameters file or a ShelleyGenesis file. The problem is the ProtocolParameters has had fields deprecated and added as we've transitioned between the eras. The scope of the change:

  1. Deprecate the option to derive the ProtocolParameters from the ShelleyGenesis as this is incorrect for the reason I gave above.
  2. In all instances where readProtocolParametersSourceSpec is used to generate a ProtocolParameters value, include the option to use the local state query protocol (i.e query the local node) to retrieve the current ProtocolParameters value.

Additional tasks:

@carbolymer carbolymer added type: enhancement An improvement on the existing functionality type: internal feature Non user-facing functionality comp: cardano-cli labels Apr 4, 2023
@carbolymer carbolymer self-assigned this Apr 4, 2023
@carbolymer carbolymer changed the title readProtocolParametersSourceSpec should be able to retrieve the ProtocolParameters by querying local node readProtocolParametersSourceSpec should be able to retrieve the ProtocolParameters by querying local node Apr 4, 2023
carbolymer added a commit that referenced this issue Apr 7, 2023
@carbolymer
Copy link
Contributor Author

carbolymer commented Apr 12, 2023

@Jimbo4350 seems that --protocol-params-file is deprecated - at least that warning says that: https://github.com/input-output-hk/cardano-node/blob/master/cardano-cli/src/Cardano/CLI/Shelley/Run/Transaction.hs#L651-L655
Should we do anything about that warning / flag within the scope of this issue?
(thanks @newhoggy for pointing that out)

@gitmachtl
Copy link
Contributor

#5053 (comment)

carbolymer added a commit that referenced this issue Apr 14, 2023
…ate-protocol-params-file

#5052 Remove reading protocol parameters from Shelley genesis file
@carbolymer carbolymer reopened this Apr 14, 2023
@github-actions
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

@github-actions github-actions bot added the Stale label May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: cardano-cli Stale type: enhancement An improvement on the existing functionality type: internal feature Non user-facing functionality
Projects
None yet
2 participants