fix: Broadcast a valid BIP 14 user agent

Closes ZcashFoundation/zebra#791.
This commit is contained in:
Jack Grigg 2020-07-29 16:53:57 +01:00 committed by Deirdre Connolly
parent ce7f3e6c01
commit d1e0e1abf5
1 changed files with 5 additions and 1 deletions

View File

@ -34,7 +34,11 @@ pub const HEARTBEAT_INTERVAL: Duration = Duration::from_secs(60);
pub const TIMESTAMP_TRUNCATION_SECONDS: i64 = 30 * 60;
/// The User-Agent string provided by the node.
pub const USER_AGENT: &str = "🦓 Zebra 3.0.0-alpha.0 🦓";
///
/// This must be a valid [BIP 14] user agent.
///
/// [BIP 14]: https://github.com/bitcoin/bips/blob/master/bip-0014.mediawiki
pub const USER_AGENT: &str = "/Zebra:3.0.0-alpha.0(🦓)/";
/// The Zcash network protocol version implemented by this crate.
///