File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -303,13 +303,9 @@ impl RelayerThread {
303
303
304
304
/// have we waited for the right conditions under which to start mining a block off of our
305
305
/// chain tip?
306
- #[ allow( clippy:: nonminimal_bool) ]
307
- #[ allow( clippy:: eq_op) ]
308
306
fn has_waited_for_latest_blocks ( & self ) -> bool {
309
307
// a network download pass took place
310
- ( self . min_network_download_passes <= self . last_network_download_passes
311
- // a network inv pass took place
312
- && self . min_network_download_passes <= self . last_network_download_passes )
308
+ self . min_network_download_passes <= self . last_network_download_passes
313
309
// we waited long enough for a download pass, but timed out waiting
314
310
|| self . last_network_block_height_ts + ( self . config . node . wait_time_for_blocks as u128 ) < get_epoch_time_ms ( )
315
311
// we're not supposed to wait at all
Original file line number Diff line number Diff line change @@ -2936,13 +2936,9 @@ impl RelayerThread {
2936
2936
2937
2937
/// have we waited for the right conditions under which to start mining a block off of our
2938
2938
/// chain tip?
2939
- #[ allow( clippy:: nonminimal_bool) ]
2940
- #[ allow( clippy:: eq_op) ]
2941
2939
pub fn has_waited_for_latest_blocks ( & self ) -> bool {
2942
2940
// a network download pass took place
2943
- ( self . min_network_download_passes <= self . last_network_download_passes
2944
- // a network inv pass took place
2945
- && self . min_network_download_passes <= self . last_network_download_passes )
2941
+ self . min_network_download_passes <= self . last_network_download_passes
2946
2942
// we waited long enough for a download pass, but timed out waiting
2947
2943
|| self . last_network_block_height_ts + ( self . config . node . wait_time_for_blocks as u128 ) < get_epoch_time_ms ( )
2948
2944
// we're not supposed to wait at all
You can’t perform that action at this time.
0 commit comments