mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-05 18:31:07 +00:00
babe: initialize next authorities on genesis (#7872)
* babe: initialize next authorities on genesis * babe: add test for genesis authorities
This commit is contained in:
1 parent
5912f81fdb
commit
6ac04e4902
2 files changed
+7
No files matched your search
@@ -674,6 +674,7 @@ impl<T: Config> Module<T> {
|
||||
if !authorities.is_empty() {
|
||||
assert!(Authorities::get().is_empty(), "Authorities are already initialized!");
|
||||
Authorities::put(authorities);
|
||||
NextAuthorities::put(authorities);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user