Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Only check warp syncing for eth_getWorks (#9484)
Browse files Browse the repository at this point in the history
* Only check warp syncing for eth_getWorks

* Use SyncStatus::is_snapshot_syncing
  • Loading branch information
sorpaas authored Sep 10, 2018
1 parent eb0986c commit ba487ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpc/src/v1/impls/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ impl<C, SN: ?Sized, S: ?Sized, M, EM, T: StateInfo + 'static> Eth for EthClient<
let queue_info = self.client.queue_info();
let total_queue_size = queue_info.total_queue_size();

if is_major_importing(Some(sync_status.state), queue_info) || total_queue_size > MAX_QUEUE_SIZE_TO_MINE_ON {
if sync_status.is_snapshot_syncing() || total_queue_size > MAX_QUEUE_SIZE_TO_MINE_ON {
trace!(target: "miner", "Syncing. Cannot give any work.");
return Err(errors::no_work());
}
Expand Down

0 comments on commit ba487ea

Please sign in to comment.