Staking module: approximate fraction into perbill to avoid overflow (#2889)

* approximate fraction into perbill

* test

* fix comment

* line width

* bump impl version

* rename test for better naming

* test overflow

* Apply suggestions from code review

Co-Authored-By: Niklas Adolfsson <niklasadolfsson1@gmail.com>
This commit is contained in:
thiolliereandNiklas Adolfsson authored and Gavin Wood committed 2019-06-24 13:23:54 +02:00
1 parent e919d03331
commit cf7dbe8151
4 files changed
+112 -25

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
impl_name: create_runtime_str!("substrate-node"),
authoring_version: 10,
spec_version: 97,
impl_version: 98,
impl_version: 99,
apis: RUNTIME_API_VERSIONS,
};