Update to Substrate master (#271)

This commit is contained in:
Pierre Krieger
2019-05-25 20:23:14 +02:00
committed by Gavin Wood
parent 24930a77c0
commit c699bdc10a
5 changed files with 70 additions and 82 deletions
+2 -6
View File
@@ -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)
}