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

Transaction Weights #62

Merged
merged 18 commits into from
Nov 2, 2019
Merged

Transaction Weights #62

merged 18 commits into from
Nov 2, 2019

Conversation

JoshOrndorff
Copy link
Owner

@JoshOrndorff JoshOrndorff commented Oct 15, 2019

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.

@JoshOrndorff JoshOrndorff changed the title Brainstorm compiles. Transaction Weights Oct 19, 2019
@@ -0,0 +1,184 @@
#![cfg_attr(not(feature = "std"), no_std)]
Copy link
Contributor

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?

Copy link
Owner Author

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.

Copy link
Contributor

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.

Copy link
Contributor

@kianenigma kianenigma left a 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

JoshOrndorff and others added 2 commits October 26, 2019 19:05
Co-Authored-By: Amar Singh <asinghchrony@protonmail.com>
Co-Authored-By: Amar Singh <asinghchrony@protonmail.com>
Copy link
Contributor

@kianenigma kianenigma left a 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.

@JoshOrndorff JoshOrndorff merged commit 6027681 into master Nov 2, 2019
@4meta5 4meta5 deleted the joshy-transaction-weights branch November 12, 2019 17:58
robamler pushed a commit to robamler/demo-ml-blockchain-node that referenced this pull request Aug 5, 2021
* 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>
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.

3 participants