File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
crates/ethcore/src/engines/hbbft Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ impl HoneyBadgerBFT {
498498 fn handle_phoenix_recovery_protocol ( & self ) {
499499 if let Some ( client) = self . client_arc ( ) {
500500 // Skip if still syncing.
501- if self . is_syncing ( & client) {
501+ if self . is_major_syncing ( & client) {
502502 return ;
503503 }
504504
@@ -1405,6 +1405,14 @@ impl HoneyBadgerBFT {
14051405 }
14061406 }
14071407
1408+ fn is_major_syncing ( & self , client : & Arc < dyn EngineClient > ) -> bool {
1409+ match client. as_full_client ( ) {
1410+ Some ( full_client) => full_client. is_major_syncing ( ) ,
1411+ // We only support full clients at this point.
1412+ None => true ,
1413+ }
1414+ }
1415+
14081416 /** returns if the signer of hbbft is tracked as available in the hbbft contracts..*/
14091417 pub fn is_available ( & self ) -> bool {
14101418 self . hbbft_engine_cache . lock ( ) . is_available ( )
You can’t perform that action at this time.
0 commit comments