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

Metrics verification #11

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Alexey-Ostrovsky
Copy link

CHANGES:

  • C4 & C5 registers depth: Mostly just terminology correction. In relation to the account state (C4 register), there is no difference. However, the actions register has its own serialization format: a list of cell references, which ends with a cell containing only an end tag. This means that the number of actions, limited by this parameter, is 512 - 1 = 511. Nevertheless, the actual limit is the "hardcoded" max_action parameter, which currently has a value of 255. I added a separate string for it. In practice, this means that if the number of actions is between 255 and 511, an error will occur during the action phase, not the compute phase. Perhaps we should consider omitting C5 to avoid confusing the reader.
  • Also fixed the description for (mc_)delete_due_limit.

NOTES:

  • block_gas_limit: Despite its presence in the global config and as an in-code value, I didn't find any payload connected to this parameter. It seems that this parameter is just being copied/packed/serialized all around, but doesn't have any effect on transaction behavior. Nevertheless, I didn't risk deleting it and would prefer to get a comment from one of the TON maintainers.

@Alexey-Ostrovsky
Copy link
Author

Created PR to documentation for clarification of those moments:

ton-community/ton-docs#882

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.

1 participant