mirror of https://github.com/poanetwork/hbbft.git
Merge pull request #134 from c0gent/c0gent-hydrabadger-dyn_hb
Add QueueingHoneyBadger::dyn_hb.
This commit is contained in:
commit
b30d272394
|
@ -189,6 +189,11 @@ where
|
||||||
QueueingHoneyBadgerBuilder::new(netinfo)
|
QueueingHoneyBadgerBuilder::new(netinfo)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// 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.
|
/// Initiates the next epoch by proposing a batch from the queue.
|
||||||
fn propose(&mut self) -> Result<FaultLog<NodeUid>> {
|
fn propose(&mut self) -> Result<FaultLog<NodeUid>> {
|
||||||
let amount = self.batch_size / self.dyn_hb.netinfo().num_nodes();
|
let amount = self.batch_size / self.dyn_hb.netinfo().num_nodes();
|
||||||
|
|
Loading…
Reference in New Issue