Skip to content

Commit

Permalink
don't count state chunks as completed for light client
Browse files Browse the repository at this point in the history
  • Loading branch information
ordian committed Jun 18, 2018
1 parent fd88e46 commit 102d0e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ethcore/src/snapshot/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,10 @@ impl<T: ChainRestorationParams> SnapshotService for Service<T> {
.chain(
restoration.manifest.state_hashes
.iter()
.filter(|h| !restoration.state_chunks_left.contains(h))
.filter(|h|
!self.chain_params.is_light() &&
!restoration.state_chunks_left.contains(h)
)
)
.map(|h| *h)
.collect();
Expand Down

0 comments on commit 102d0e7

Please sign in to comment.