Skip to content
Snippets Groups Projects
Commit c699bdc1 authored by Pierre Krieger's avatar Pierre Krieger Committed by Gavin Wood
Browse files

Update to Substrate master (#271)

parent 24930a77
Branches
No related merge requests found
This diff is collapsed.
......@@ -9,7 +9,6 @@ authors = ["Parity Technologies <admin@parity.io>"]
build = "build.rs"
[dependencies]
error-chain = "0.12"
polkadot-cli = { path = "cli" }
futures = "0.1"
ctrlc = { version = "3.0", features = ["termination"] }
......
......@@ -57,7 +57,7 @@ use aura::{import_queue, start_aura, AuraImportQueue, SlotDuration, NothingExtra
use inherents::InherentDataProviders;
pub use service::{
Roles, PruningMode, TransactionPoolOptions, ComponentClient,
ErrorKind, Error, ComponentBlock, LightComponents, FullComponents,
Error, ComponentBlock, LightComponents, FullComponents,
FullClient, LightClient, Components, Service, ServiceFactory
};
pub use service::config::full_version_from_strs;
......
......@@ -22,9 +22,6 @@ extern crate polkadot_cli as cli;
extern crate ctrlc;
extern crate futures;
#[macro_use]
extern crate error_chain;
use cli::{PolkadotService, VersionInfo, TaskExecutor};
use futures::sync::oneshot;
use futures::{future, Future};
......@@ -58,9 +55,7 @@ impl cli::Worker for Worker {
}
}
quick_main!(run);
fn run() -> cli::error::Result<()> {
fn main() -> Result<(), cli::error::Error> {
let version = VersionInfo {
name: "Parity Polkadot",
commit: env!("VERGEN_SHA_SHORT"),
......@@ -70,5 +65,6 @@ fn run() -> cli::error::Result<()> {
description: "Polkadot Relay-chain Client Node",
support_url: "https://github.com/paritytech/polkadot/issues/new",
};
cli::run(::std::env::args(), Worker, version)
}
......@@ -23,10 +23,7 @@ use primitives::ed25519::Public as AuthorityId;
error_chain! {
foreign_links {
Client(::client::error::Error);
}
links {
Consensus(::consensus::error::Error, ::consensus::error::ErrorKind);
Consensus(::consensus::error::Error);
}
errors {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment