Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Update user agent #107

Merged
merged 1 commit into from May 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions pzec/config.rs
Expand Up @@ -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(),
};

Expand Down
2 changes: 1 addition & 1 deletion pzec/main.rs
Expand Up @@ -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";

Expand Down