Amar Singh
a757dfb222
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
2019-07-19 14:21:05 +02:00
Bastian Köcher
c42d73d302
Make parameter types implementation more flexible ( #3112 )
...
* Make parameter types implementation more flexible
* Bump `impl_version`
2019-07-13 10:54:41 +02:00
André Silva
ed630e5eda
srml: system: prune block hash mapping ( #3062 )
...
* srml: system: prune block number to hash mapping
* srml: system: add test for block hash mapping pruning
* node: bump runtime version
* srml: system: wrap long line
* srml: system: use parameter type for block hash count
* srml: system: prune block hash mapping before storage root calculation
* srml: system: keep the genesis hash in block number map
2019-07-09 17:07:38 +02:00
Gavin Wood
9c6ebfeccd
Initial mechanics for 80:20 fee split ( #2912 )
...
* Initial mechanics for 80:20 fee split
Also:
- Introduce extra functions for Imbalance manipulation;
- Store treasury pot in an account, letting total issuance account for
it.
* Fix some tests
* Fix some tests
* Minor cleanups
* Update parity-codec version (#2855 )
* Update parity-codec version
* Update grandpa, rhododendron and trie-bench
* Use primitive-types from crates.io
* Bump impl version
* Fix trie-bench version
* Fix lock files
* Fix versions
* Update codec to 4.1
* merge fix
* Revert merge
* More reversions
* Remove accidental code
* Update locks
* Bump runtime
* Update locks
* Tweaks and label TODO
* Update srml/treasury/src/lib.rs
Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com >
* Update issue number
* Update core/sr-primitives/src/traits.rs
Co-Authored-By: Robert Habermeier <rphmeier@gmail.com >
* Fix wasm build
* Fix subkey build
2019-07-02 11:41:03 +02:00
Bastian Köcher
7202403bfc
Make constants exposable in metadata ( #2975 )
...
* Some cleanup
* Add module constant metadata declaration
* Begin to integrate the constants in `decl_module`
* Fixes tests
* Fix compilation and add tests
* Remove duplicate code
* Expose constants in democracy and staking + further fixes
* Update srml/metadata/src/lib.rs
Co-Authored-By: YJ <yjkimjunior@gmail.com >
* Hide `RawEvent` metadata function
* Prevent whitespaces in types
* Fix `offchain_worker` and `constants` with instances
* Up the `impl_version`
* Fix macro
* Incrase impl_version
2019-07-01 10:05:28 +02:00
Bastian Köcher
62b7c05def
Implement a proper generic resolution in decl_storage! ( #2913 )
...
* Add failing test case
* move storage maps to blake2_128 (#2268 )
* remove default hash, introduce twox_128 and blake2
* use blake2_128 & create ext_blake2_128
* refactor code
* add benchmark
* factorize generator
* fix
* parameterizable hasher
* some fix
* fix
* fix
* fix
* metadata
* fix
* remove debug print
* map -> blake2_256
* fix test
* fix test
* Apply suggestions from code review
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com >
* impl twox 128 concat (#2353 )
* impl twox_128_concat
* comment addressed
* fix
* impl twox_128->64_concat
* fix test
* Fix compilation and cleanup some docs
* Lol
* Remove traits from storage types that are not generic
* Get instance test almost working as wanted
* Make `srml-support-test` compile again :)
* Fixes test of srml-support
* Fix compilation
* Break some lines
* Remove incorrect macro match arm
* Integrates review feedback
* Update documentation
* Fix compilation
2019-06-27 13:40:22 +02:00
Stanislav Tkach
443ad90b47
Update codec version to the 4.1 version ( #2948 )
...
* Update codec version to the 4.1 version
* Bump impl_version
* Update lock files
* Update codec to 4.1.1 version
* Bump impl version
2019-06-26 16:26:24 +02:00
Robert Habermeier
0ddf4a2a00
Generic authorship and uncle inclusion module ( #2941 )
...
* generalized uncle processing
* add some uncle tests
* set author and do event handling
* OnePerAuthorPerHeight no longer O(n^2) and test
* bump impl_version of node
* Documentation and style fixes
Co-Authored-By: DemiMarie-parity <48690212+DemiMarie-parity@users.noreply.github.com >
* fix #2949 : index-based FindAuthor wrapper for srml-session
* use for_each_tuple
2019-06-26 12:24:58 +02:00