Skip to content

Transaction Weights#62

Merged
JoshOrndorff merged 18 commits intomasterfrom
joshy-transaction-weights
Nov 2, 2019
Merged

Transaction Weights#62
JoshOrndorff merged 18 commits intomasterfrom
joshy-transaction-weights

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
@amarsinghcodes amarsinghcodes 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