Merge branch 'master' into vk-api-refactor66

This commit is contained in:
Vladimir Komendantskiy 2018-07-13 22:18:01 +01:00
commit 03153cf788
1 changed files with 5 additions and 0 deletions

View File

@ -201,6 +201,11 @@ where
Ok(Step::new(self.output.drain(0..).collect(), fault_log))
}
/// Returns a reference to the internal `DynamicHoneyBadger` instance.
pub fn dyn_hb(&self) -> &DynamicHoneyBadger<Vec<Tx>, NodeUid> {
&self.dyn_hb
}
/// Initiates the next epoch by proposing a batch from the queue.
fn propose(&mut self) -> Result<FaultLog<NodeUid>> {
let amount = self.batch_size / self.dyn_hb.netinfo().num_nodes();