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

Make some Commitment Input checks syntactical #702

Merged
merged 4 commits into from
Mar 5, 2024

Conversation

PhilippGackstatter
Copy link
Contributor

Description of change

Make some Commitment Input checks syntactical per the reasoning in #693.

See the TIPs for details on the updated rules:

Fixes #693.

The checks that were previously semantic were made panics since we have to be able to assume at the semantic validation stage that the syntactic stage was passed successfully. Exception to this: Newly added Block Issuer Features still return an error, because we would have to specifically add a panic and make the code less nicely structured, so it seems fine to not panic.

How the change has been tested

New syntactical function covered 100% by test TestCommitmentInputSyntacticalValidation.

@muXxer muXxer merged commit f6c86e8 into develop Mar 5, 2024
4 checks passed
@muXxer muXxer deleted the context-input-syntactical branch March 5, 2024 07:36
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.

Make Context Input requirement checks syntactic
2 participants