Multiply tx len and base fee component by max number of remarks per block, in the fees calculation of congested_chain_simulation test#536
Merged
ghzlatarev merged 3 commits intomantafrom May 18, 2022
Conversation
Signed-off-by: ghzlatarev <ghzlatarev@gmail.com>
congested_chain_simulation test
stechu
reviewed
May 16, 2022
stechu
reviewed
May 16, 2022
Contributor
|
Does it affect the congestion? Worse or better? |
Contributor
Author
The length component doesn't add much. Around $500 at the end of the day. |
congested_chain_simulation testcongested_chain_simulation test
Signed-off-by: ghzlatarev <ghzlatarev@gmail.com>
bhgomes
pushed a commit
that referenced
this pull request
May 20, 2022
…lock, in the fees calculation of `congested_chain_simulation` test (#536) * Add len fee to the test Signed-off-by: ghzlatarev <ghzlatarev@gmail.com> * Comment Signed-off-by: ghzlatarev <ghzlatarev@gmail.com> * Consistent use of safe math Signed-off-by: ghzlatarev <ghzlatarev@gmail.com> Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
bhgomes
pushed a commit
that referenced
this pull request
May 20, 2022
…lock, in the fees calculation of `congested_chain_simulation` test (#536) * Add len fee to the test Signed-off-by: ghzlatarev <ghzlatarev@gmail.com> * Comment Signed-off-by: ghzlatarev <ghzlatarev@gmail.com> * Consistent use of safe math Signed-off-by: ghzlatarev <ghzlatarev@gmail.com> Signed-off-by: Brandon H. Gomes <bhgomes@pm.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: ghzlatarev ghzlatarev@gmail.com
Description
closes: #530
congested_chain_simulationbecause when ApplyWeightToFeePolynomials topallet_transaction_payment's length fee paritytech/substrate#10785 lands in 0.9.18 it might not be so negligible to ignore. It adds $500 to the result cost.remarksin a TX and multiply thelenandbase_weightcomponents by that amount.Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
<branch>/CHANGELOG.mdFiles changedin the Github PR explorer.authoring_version: The version of the authorship interface. An authoring node will not attempt to author blocks unless this is equal to its native runtime.spec_version: The version of the runtime specification. A full node will not attempt to use its native runtime in substitute for the on-chain Wasm runtime unless all of spec_name, spec_version, and authoring_version are the same between Wasm and native.impl_version: The version of the implementation of the specification. Nodes are free to ignore this; it serves only as an indication that the code is different; as long as the other two versions are the same then while the actual code may be different, it is nonetheless required to do the same thing. Non-consensus-breaking optimizations are about the only changes that could be made which would result in only the impl_version changing.transaction_version: The version of the extrinsics interface. This number must be updated in the following circumstances: extrinsic parameters (number, order, or types) have been changed; extrinsics or pallets have been removed; or the pallet order in the construct_runtime! macro or extrinsic order in a pallet has been changed. You can run themetadata_diff.ymlworkflow for help. If this number is updated, then thespec_versionmust also be updatedBaseFilter. Ensure every extrinsic works from front-end. If there's corresponding tool, ensure both work for each other.try-runtime. This includes migrations inherited from upstream changes, and you can search the diffs for modifications of#[pallet::storage]items to check for any.