Browse Source

runtime: Fix uncle rewards.

Shamil Gadelshin 4 years ago
parent
commit
aadb581787
1 changed files with 2 additions and 2 deletions
  1. 2 2
      runtime/src/lib.rs

+ 2 - 2
runtime/src/lib.rs

@@ -232,14 +232,14 @@ impl pallet_sudo::Trait for Runtime {
 }
 
 parameter_types! {
-    pub const UncleGenerations: BlockNumber = 5;
+    pub const UncleGenerations: BlockNumber = 0;
 }
 
 impl pallet_authorship::Trait for Runtime {
     type FindAuthor = pallet_session::FindAccountFromAuthorIndex<Self, Babe>;
     type UncleGenerations = UncleGenerations;
     type FilterUncle = ();
-    type EventHandler = Staking;
+    type EventHandler = (Staking, ImOnline);
 }
 
 impl_opaque_keys! {