Split polkadot-service (#310)

* Substrate service

* Splitting polkadot service

* Specialised components

* Specialised components

* Docs and style

* Docs and style

* Final touches

* Added db key assertion
This commit is contained in:
Arkadiy Paronyan
2018-07-14 18:07:11 +02:00
committed by Gav Wood
parent ee31955969
commit b8216372c7
49 changed files with 1250 additions and 936 deletions
+2 -4
View File
@@ -25,7 +25,7 @@ extern crate futures;
#[macro_use]
extern crate error_chain;
use cli::{ClientError, ServiceComponents, ClientBackend, PolkadotBlock, StateMachineBackend, Service};
use cli::{ServiceComponents, Service};
use futures::sync::oneshot;
use futures::{future, Future};
@@ -51,9 +51,7 @@ impl cli::Worker for Worker {
exit.map_err(drop)
}
fn work<C: ServiceComponents>(self, _service: &Service<C>) -> Self::Exit
where ClientError: From<<<<C as ServiceComponents>::Backend as ClientBackend<PolkadotBlock>>::State as StateMachineBackend>::Error>,
{
fn work<C: ServiceComponents>(self, _service: &Service<C>) -> Self::Exit {
self.exit_only()
}
}