mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 17:31:03 +00:00
Consensus message buffering and more (#114)
* CLI options and keystore integration * Replace multiqueue with future::mpsc * BFT gossip * Revert to app_dirs * generate_from_seed commented * Refactor event loop * Start consensus by timer * Message buffering * Minor fixes * Work around duty-roster issue. * some more minor fixes * fix compilation * more consistent formatting * make bft input stream never conclude * Minor fixes * add timestamp module to executive * more cleanups and logging * Fixed message propagation
This commit is contained in:
committed by
Gav Wood
parent
6a99c9a43d
commit
f532982623
@@ -44,7 +44,7 @@ impl<T: Trait> Module<T> {
|
||||
pub fn calculate_duty_roster() -> DutyRoster {
|
||||
let parachain_count = Self::count();
|
||||
let validator_count = <session::Module<T>>::validator_count();
|
||||
let validators_per_parachain = (validator_count - 1) / parachain_count;
|
||||
let validators_per_parachain = if parachain_count != 0 { (validator_count - 1) / parachain_count } else { 0 };
|
||||
|
||||
let mut roles_val = (0..validator_count).map(|i| match i {
|
||||
i if i < parachain_count * validators_per_parachain =>
|
||||
|
||||
Reference in New Issue
Block a user