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

Display block weight #2599

Closed
kianenigma opened this issue Apr 22, 2020 · 2 comments · Fixed by #5145
Closed

Display block weight #2599

kianenigma opened this issue Apr 22, 2020 · 2 comments · Fixed by #5145

Comments

@kianenigma
Copy link

Currently, each ExtrinsicSuccess or Failed event has the weight of the underlying event. Both failed and ok extrinsics consume weight. The total weight can be fetched from the system module's AllExtrinsicsWeight (will be exposed as consts here paritytech/substrate#5733). Would be good to show the ratio of the block's weight usage as a percentage/progress bar in the overview page.

Although, there should be a popup to note: This ratio does not take into account the weight of on_initialise and on_runtime_upgrade().

@kianenigma
Copy link
Author

paritytech/substrate#5722 is adding two new constants that can be incorporated here.

@polkadot-js-bot
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators May 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants