From b9b6954d023fd4f1cf369795c84624488e07e5ff Mon Sep 17 00:00:00 2001 From: Quentin Le Sceller Date: Mon, 26 Mar 2018 17:21:03 -0400 Subject: [PATCH] Automatic version with cargo.toml (#874) * Automatic version with cargo.toml * Add more time for server to start --- grin/tests/api.rs | 2 +- src/bin/grin.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/grin/tests/api.rs b/grin/tests/api.rs index f5926bcc..ce4f7c78 100644 --- a/grin/tests/api.rs +++ b/grin/tests/api.rs @@ -181,7 +181,7 @@ fn test_p2p() { let _ = thread::spawn(move || server_two.run_server(120)); // Let them do the handshake - thread::sleep(time::Duration::from_millis(1500)); + thread::sleep(time::Duration::from_millis(2000)); // Starting tests warn!(LOGGER, "Starting P2P Tests"); diff --git a/src/bin/grin.rs b/src/bin/grin.rs index 9fbf7eda..79d600bc 100644 --- a/src/bin/grin.rs +++ b/src/bin/grin.rs @@ -15,6 +15,7 @@ //! Main for building the binary of a Grin peer-to-peer node. extern crate blake2_rfc as blake2; +#[macro_use] extern crate clap; extern crate cursive; extern crate daemonize; @@ -116,7 +117,7 @@ fn start_server_tui(config: grin::ServerConfig) { fn main() { let args = App::new("Grin") - .version("0.1") + .version(crate_version!()) .author("The Grin Team") .about("Lightweight implementation of the MimbleWimble protocol.")