Bastian Köcher
e3e651f72c
Happy new year ( #7814 )
...
* Happy new year
Updates the copyright years and fixes wrong license headers.
* Fix the template
* Split HEADER into HEADER-APACHE & HEADER-GPL
2021-01-04 09:03:13 +00:00
Bastian Köcher
5808f467c5
Make Substrate compile with latest nightly ( #7381 )
...
* Try to get it compiling
* One more
* Make stable happy
* Make stable even more happy ;)
* Update shell.nix
2020-10-23 21:08:04 +02:00
Vladislav
3c0a049bee
Add CompactAs derive for Fixed* types ( #7293 )
...
Signed-off-by: Vladislav Markushin <negigic@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-10-09 23:35:09 +02:00
pscott
046fda914a
Improve overall performance ( #6699 )
...
* Improve overall performance
* Clean up code
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Remove needless ::
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Remove needless ::
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2020-07-21 14:46:49 +02:00
Shaopeng Wang
a43a755a91
FixedPointNumber: zero is not positive. ( #6385 )
2020-06-18 09:35:49 +02:00
Kian Paimani
82bdf1a891
Fix the broken weight multiplier update function ( #6334 )
...
* Initial draft, has some todos left
* remove ununsed import
* Apply suggestions from code review
* Some refactors with migration
* Fix more test and cleanup
* Fix for companion
* Apply suggestions from code review
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Update bin/node/runtime/src/impls.rs
* Fix weight
* Add integrity test
* length is not affected.
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2020-06-17 13:20:17 +00:00
Marcio Diaz
7c051caa42
Enable fixed point u128 ( #6214 )
...
* Add fixed u128.
* remove move
* Change sat_from_integer impl.
* checked_pow is always positive
* Revert.
* rename fixed file
* Rename to FixedI
* rename fixed file
* Add newline.
* Use Multiplier in impls.
* Renames negate() to saturating_negate().
* Uncomment test.
* Add Signed to macro.
* Add some tests for Saturating trait.
2020-06-06 13:04:39 +02:00