update user agent

This commit is contained in:
Svyatoslav Nikolsky 2019-05-24 10:52:01 +03:00
parent 2d05fd8a55
commit f26a72e19e
2 changed files with 3 additions and 3 deletions

View File

@ -73,9 +73,9 @@ pub fn parse(matches: &clap::ArgMatches) -> Result<Config, String> {
};
// 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(),
};

View File

@ -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";