mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 19:21:13 +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:
@@ -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