From d1e0e1abf530eea48d4fd4375065d09ce8beaaca Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Wed, 29 Jul 2020 16:53:57 +0100 Subject: [PATCH] fix: Broadcast a valid BIP 14 user agent Closes ZcashFoundation/zebra#791. --- zebra-network/src/constants.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zebra-network/src/constants.rs b/zebra-network/src/constants.rs index 86bd5a2bc..742b48f86 100644 --- a/zebra-network/src/constants.rs +++ b/zebra-network/src/constants.rs @@ -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. ///