fix(light-rpc): Make light_sync generic (#10238)

* fix(light-rpc): Make `light_sync` generic

The motivation behind this change is to easily mock `light-sync` to make it possible to enable `rpc-integration` tests
for the light-client.

Currently the `rpc's` requires the concrete type `sync::LightSync` which makes it very hard to do so

* fix(bad merge)
This commit is contained in:
Niklas Adolfsson
2019-02-11 11:33:16 +01:00
committed by Andrew Jones
parent 8b6c5be6a9
commit 751d15e4be
9 changed files with 198 additions and 63 deletions

View File

@@ -18,7 +18,7 @@ use std::sync::{Arc, Weak};
use ethcore::engines::{EthEngine, StateDependentProof};
use ethcore::machine::EthereumMachine;
use sync::LightSync;
use sync::{LightSync, LightNetworkDispatcher};
use types::encoded;
use types::header::Header;
use types::receipt::Receipt;

View File

@@ -20,7 +20,7 @@ use std::sync::Arc;
use std::time::Duration;
use ethcore::client::ClientIoMessage;
use sync::LightSync;
use sync::{LightSync, LightNetworkDispatcher};
use io::{IoContext, IoHandler, TimerToken};
use light::client::LightChainClient;