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

formally specify WeightLimit enum variants #61

Merged
merged 1 commit into from
Jul 12, 2024
Merged

formally specify WeightLimit enum variants #61

merged 1 commit into from
Jul 12, 2024

Conversation

acatangiu
Copy link
Contributor

@acatangiu acatangiu commented Jun 3, 2024

Clarify specification in case of WeightLimit.

Caught by @mrshiposha in #55 (comment)

@@ -1039,7 +1039,7 @@ Errors:

A directive to indicate that the origin expects free execution of the message.

At execution time, this instruction just does a check on the Origin register. However, at the barrier stage, messages starting with this instruction can be disregarded if the origin is not acceptable for free execution, or the `weight_limit` is `Limited` and insufficient.
At execution time, this instruction just does a check on the Origin register. However, at the barrier stage, messages starting with this instruction can be disregarded if the origin is not acceptable for free execution, or the `weight_limit` is `Limited(w)` and `w` is insufficient weight.

Choose a reason for hiding this comment

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

Suggested change
At execution time, this instruction just does a check on the Origin register. However, at the barrier stage, messages starting with this instruction can be disregarded if the origin is not acceptable for free execution, or the `weight_limit` is `Limited(w)` and `w` is insufficient weight.
At execution time, this instruction just does a check on the Origin register. However, at the barrier stage, messages starting with this instruction can be disregarded if the origin is not acceptable for free execution, or the `weight_limit` is `Limited(weight)` and `weight` is insufficient.

maybe subjective

Copy link
Contributor

@bkontur bkontur left a comment

Choose a reason for hiding this comment

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

I realized that the README.md contains outdated and broken links to the old Polkadot repo, so I will fix and open a separate PR to fix them.

@acatangiu
Copy link
Contributor Author

yes, the README.md is the actual formal spec and requires updating on multiple sections - we need to be much more active with its maintainance

@acatangiu
Copy link
Contributor Author

/merge

@bkchr bkchr merged commit 01b3615 into master Jul 12, 2024
7 checks passed
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.

5 participants