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

On-chain recording of Core gas usage & per-service breakdown #256

Open
gavofyork opened this issue Mar 1, 2025 · 0 comments · May be fixed by #285
Open

On-chain recording of Core gas usage & per-service breakdown #256

gavofyork opened this issue Mar 1, 2025 · 0 comments · May be fixed by #285

Comments

@gavofyork
Copy link
Owner

gavofyork commented Mar 1, 2025

This would imply placing the actual amount of gas used in IsAuthorized and Refine alongside the WorkOutputs in each WorkReport.

Additionally, the number of segments imported, as well as extrinsic count and total size could be helpful.

There would be an additional portion of state, perhaps combined into $\pi$, which would record the Refine gas usage per-core and per-service asserting it to be used at the time of reporting and the Accumulate gas usage per-core and per-service asserting it to be used at the time of accumulation.

This may help diagnostic services since they won't otherwise be easily able to get at this information.

@gavofyork gavofyork changed the title Consider: On-chain recording of Core gas usage & per-service breakdown On-chain recording of Core gas usage & per-service breakdown Mar 6, 2025
@gavofyork gavofyork linked a pull request Mar 12, 2025 that will close this issue
7 tasks
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 a pull request may close this issue.

1 participant