Skip to content

Commit 2d1cf2f

Browse files
committed
cargo fmt --all -- --config imports_granularity=Crate
1 parent 7dad495 commit 2d1cf2f

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

crates/ethcore/src/engines/hbbft/contracts/keygen_history.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ pub fn all_parts_acks_available(
213213
client: &dyn EngineClient,
214214
num_validators: usize,
215215
) -> Result<bool, CallError> {
216-
217216
let c = BoundContract::bind(client, BlockId::Latest, *KEYGEN_HISTORY_ADDRESS);
218217
let (num_parts, num_acks) = call_const_key_history!(c, get_number_of_key_fragments_written)?;
219218
Ok(num_parts.low_u64() == (num_validators as u64)

crates/ethcore/src/engines/hbbft/hbbft_engine.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -899,11 +899,9 @@ impl HoneyBadgerBFT {
899899
}
900900

901901
fn start_hbbft_epoch_if_next_phase(&self) {
902-
903902
// experimental deactivation of empty blocks.
904903
// see: https://github.com/DMDcoin/diamond-node/issues/160
905904

906-
907905
match self.client_arc() {
908906
None => return,
909907
Some(client) => {
@@ -1156,9 +1154,7 @@ impl HoneyBadgerBFT {
11561154
// Check if a new key is ready to be generated, return true to switch to the new epoch in that case.
11571155
// The execution needs to be *identical* on all nodes, which means it should *not* use the local signer
11581156
// when attempting to initialize the synckeygen.
1159-
if let Ok(all_available) =
1160-
all_parts_acks_available(&*client, validators.len())
1161-
{
1157+
if let Ok(all_available) = all_parts_acks_available(&*client, validators.len()) {
11621158
if all_available {
11631159
let null_signer = Arc::new(RwLock::new(None));
11641160
match initialize_synckeygen(

0 commit comments

Comments
 (0)