File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed
crates/ethcore/src/engines/hbbft Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff 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 )
Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments