Check that validator set is not empty at genesis (#3083)

* Check that the returned validator set is not empty

* Move assert to session module

* Clean up
This commit is contained in:
Bastian Köcher
2019-07-10 14:38:07 +02:00
committed by Gavin Wood
parent df93867620
commit 0366f7b35c
3 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -411,8 +411,8 @@ construct_runtime!(
Authorship: authorship::{Module, Call, Storage},
Indices: indices,
Balances: balances,
Session: session::{Module, Call, Storage, Event, Config<T>},
Staking: staking::{default, OfflineWorker},
Session: session::{Module, Call, Storage, Event, Config<T>},
Democracy: democracy::{Module, Call, Storage, Config, Event<T>},
Council: collective::<Instance1>::{Module, Call, Storage, Origin<T>, Event<T>, Config<T>},
TechnicalCommittee: collective::<Instance2>::{Module, Call, Storage, Origin<T>, Event<T>, Config<T>},