Skip to content

ETCM-6659 allow unset permissioned candidates if P=0 #643

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

Merged

Conversation

kpinter-iohk
Copy link
Contributor

Description

🚨 This PR is similar to #638 but it moves the logic out of the data source layer.

When getting Ariadne parameters, if num_permissioned_candidates in d_params is 0, having not inserted a permissioned candidates list is not an error. If a chain does not wish to have any permissioned candidates, this way they won't need to spend ADA submitting an empty list of them.

Checklist

  • Commit sequence broadly makes sense and commits have useful messages.
  • The size limit of 400 LOC isn't needlessly exceeded
  • The PR refers to a JIRA ticket (if one exists)
  • New tests are added if needed and existing tests are updated.
  • Relevant logging and metrics added
  • Any changes are noted in the changelog.md for affected crate
  • Self-reviewed the diff

@LGLO
Copy link
Contributor

LGLO commented Apr 4, 2025

I'm afraid that #638 is better, because it makes the change local to data source and doesn't break things. All the knowledge needed for the case we want to support in this PR description is available in data source.

@kpinter-iohk kpinter-iohk force-pushed the ETCM-6659-allow-unset-permissioned-candidates-2 branch 3 times, most recently from 566f50d to 6d628f0 Compare April 7, 2025 12:07
@kpinter-iohk kpinter-iohk force-pushed the ETCM-6659-allow-unset-permissioned-candidates-2 branch from 6d628f0 to d950c20 Compare April 7, 2025 19:54
@kpinter-iohk kpinter-iohk force-pushed the ETCM-6659-allow-unset-permissioned-candidates-2 branch from d950c20 to da08d88 Compare April 7, 2025 19:56
@kpinter-iohk kpinter-iohk requested a review from LGLO April 7, 2025 19:59
@kpinter-iohk kpinter-iohk merged commit 41eba05 into master Apr 8, 2025
26 checks passed
@kpinter-iohk kpinter-iohk deleted the ETCM-6659-allow-unset-permissioned-candidates-2 branch April 8, 2025 08:43
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.

2 participants