Transaction Fee Multiplier (#2854)
* added fee calculations; need some type conversions * cleaned up make_payment and other stuff * rename vars to compile * add WeightToFee type * clean test files after new type added to balances * fmting * fix balance configs in tests * more fixing mocks and tests * more comprehensive block weight limit test * fix compilation errors * more srml/executive tests && started fixing node/executor tests * new fee multiplier; still overflows :( * perbill at the end attempt; needs to be changed * clean fmting, rename some vars * new PoC implementation. * test weight_to_fee range and verify functionality * 12 of 15 tests in node executor are passing * 1 test failing; big_block imports are failing for wrong reasons * Update srml/executive/src/lib.rs Co-Authored-By:Kian Peymani <Kianenigma@users.noreply.github.com> * Some cleanup. * consolidate tests in runtime impls * clean and condition executive for stateful fee range test * remove comments to self * Major cleanup. * More cleanup. * Fix lock files. * Fix build. * Update node-template/runtime/Cargo.toml Co-Authored-By:
Gavin Wood <github@gavwood.com> * Update node/executor/src/lib.rs Co-Authored-By:
Gavin Wood <github@gavwood.com> * Update node/executor/src/lib.rs Co-Authored-By:
Gavin Wood <github@gavwood.com> * Update node/executor/src/lib.rs Co-Authored-By:
Gavin Wood <github@gavwood.com> * Update node/executor/src/lib.rs Co-Authored-By:
Gavin Wood <github@gavwood.com> * Update node/executor/src/lib.rs Co-Authored-By:
Gavin Wood <github@gavwood.com> * Update node/executor/src/lib.rs Co-Authored-By:
Gavin Wood <github@gavwood.com> * Per-block update. * nit. * Update docs. * Fix contracts test. * Stateful fee update. * Update lock files. * Update node/runtime/src/impls.rs * Revamped again with fixed64. * fix cargo file. * nits. * Some cleanup. * Some nits. * Fix build. * Bump. * Rename to WeightMultiplier * Update node/executor/src/lib.rs Co-Authored-By:
Tomasz Drwięga <tomusdrw@users.noreply.github.com> * Add weight to election module mock. * Fix build. * finalize merge * Update srml/system/src/lib.rs * Bring back fees. * Some nits. * Code shifting for simplicity. * Fix build + more tests. * Update weights.rs * Update core/sr-primitives/src/weights.rs * Update lib.rs * Fix test build
Showing
- substrate/core/sr-primitives/src/lib.rs 142 additions, 19 deletionssubstrate/core/sr-primitives/src/lib.rs
- substrate/core/sr-primitives/src/weights.rs 86 additions, 6 deletionssubstrate/core/sr-primitives/src/weights.rs
- substrate/node-template/runtime/Cargo.toml 2 additions, 2 deletionssubstrate/node-template/runtime/Cargo.toml
- substrate/node-template/runtime/src/lib.rs 9 additions, 4 deletionssubstrate/node-template/runtime/src/lib.rs
- substrate/node-template/runtime/src/template.rs 2 additions, 1 deletionsubstrate/node-template/runtime/src/template.rs
- substrate/node/executor/src/lib.rs 183 additions, 31 deletionssubstrate/node/executor/src/lib.rs
- substrate/node/runtime/src/impls.rs 214 additions, 0 deletionssubstrate/node/runtime/src/impls.rs
- substrate/node/runtime/src/lib.rs 7 additions, 15 deletionssubstrate/node/runtime/src/lib.rs
- substrate/srml/assets/src/lib.rs 1 addition, 0 deletionssubstrate/srml/assets/src/lib.rs
- substrate/srml/aura/src/mock.rs 1 addition, 0 deletionssubstrate/srml/aura/src/mock.rs
- substrate/srml/authorship/src/lib.rs 1 addition, 0 deletionssubstrate/srml/authorship/src/lib.rs
- substrate/srml/balances/Cargo.toml 1 addition, 1 deletionsubstrate/srml/balances/Cargo.toml
- substrate/srml/balances/src/lib.rs 4 additions, 3 deletionssubstrate/srml/balances/src/lib.rs
- substrate/srml/balances/src/mock.rs 7 additions, 6 deletionssubstrate/srml/balances/src/mock.rs
- substrate/srml/balances/src/tests.rs 1 addition, 1 deletionsubstrate/srml/balances/src/tests.rs
- substrate/srml/collective/src/lib.rs 1 addition, 0 deletionssubstrate/srml/collective/src/lib.rs
- substrate/srml/contracts/src/tests.rs 3 additions, 4 deletionssubstrate/srml/contracts/src/tests.rs
- substrate/srml/council/src/lib.rs 2 additions, 1 deletionsubstrate/srml/council/src/lib.rs
- substrate/srml/democracy/src/lib.rs 1 addition, 0 deletionssubstrate/srml/democracy/src/lib.rs
- substrate/srml/elections/src/lib.rs 1 addition, 0 deletionssubstrate/srml/elections/src/lib.rs
Please register or sign in to comment