mirror of https://github.com/poanetwork/hbbft.git
Add QueueingHoneyBadger::dyn_hb.
Needed to retrieve netinfo.
This commit is contained in:
parent
c12bb58ac0
commit
28da78c709
|
@ -189,6 +189,11 @@ where
|
|||
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.
|
||||
fn propose(&mut self) -> Result<FaultLog<NodeUid>> {
|
||||
let amount = self.batch_size / self.dyn_hb.netinfo().num_nodes();
|
||||
|
|
Loading…
Reference in New Issue