From f26a72e19e72a079fa91ac0fdf104334b6f4686e Mon Sep 17 00:00:00 2001 From: Svyatoslav Nikolsky Date: Fri, 24 May 2019 10:52:01 +0300 Subject: [PATCH] update user agent --- pzec/config.rs | 4 ++-- pzec/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pzec/config.rs b/pzec/config.rs index 7b7b9055..41d2b8c5 100644 --- a/pzec/config.rs +++ b/pzec/config.rs @@ -73,9 +73,9 @@ pub fn parse(matches: &clap::ArgMatches) -> Result { }; // to skip idiotic 30 seconds delay in test-scripts - let user_agent_suffix = ""; let user_agent = match network { - Network::Testnet | Network::Mainnet | Network::Unitest | Network::Other(_) => format!("{}{}", USER_AGENT, user_agent_suffix), + Network::Testnet | Network::Mainnet | Network::Unitest | Network::Other(_) + => USER_AGENT.into(), Network::Regtest => REGTEST_USER_AGENT.into(), }; diff --git a/pzec/main.rs b/pzec/main.rs index e9059554..ef07fb12 100644 --- a/pzec/main.rs +++ b/pzec/main.rs @@ -37,7 +37,7 @@ pub const PROTOCOL_VERSION: u32 = 70_014; pub const PROTOCOL_MINIMUM: u32 = 70_001; pub const ZCASH_PROTOCOL_VERSION: u32 = 170_007; pub const ZCASH_PROTOCOL_MINIMUM: u32 = 170_007; -pub const USER_AGENT: &'static str = "bcore"; +pub const USER_AGENT: &'static str = "pzec"; pub const REGTEST_USER_AGENT: &'static str = "/Satoshi:0.12.1/"; pub const LOG_INFO: &'static str = "sync=info";