-
Notifications
You must be signed in to change notification settings - Fork 184
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
Transaction Weights #62
Conversation
@@ -0,0 +1,184 @@ | |||
#![cfg_attr(not(feature = "std"), no_std)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we use headers here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like to know more about headers. Do you have a link to read?
I do know if I remove this line, the build fails.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean license headers. Probably @shawntabrizi should decide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't read in much details but all in all examples looked really good. Appreciated. Would be good if you read our other PR on weight/fee and link as much as you can to this
Co-Authored-By: Amar Singh <asinghchrony@protonmail.com>
Co-Authored-By: Amar Singh <asinghchrony@protonmail.com>
…loper-hub/recipes into joshy-transaction-weights
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some final nits but looks good in general and for the first pass.
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
* Upgrade to v2.0.0-rc4 * Better updates to README Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com> Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com>
This is part of the effort to document and exemplify transaction weighting.
It adds several examples of calculating transaction weights using FixedNormal as well as three custom weighting functions.
It also includes a runtime example which provides three (two non-trivial) examples of WeightToFee conversions.
The last item todo is to write about it in the text. I think not much text is needed because there are good docs going into devhub. I considered maybe it should replace https://substrate.dev/recipes/design/econsecurity.html but I'd like @4meta5 's opinion on that.