Closed
Description
openedon Jun 23, 2021
Motivation
-
We want
zebrad
to have a different user agent from the ECC's DNS seeder, and other apps that usezebra-network
-
We'd like to simplify Zebra's release process, by automatically using a
zebrad
version in the zebra-network user agent.
Specifications
https://github.com/bitcoin/bips/blob/master/bip-0014.mediawiki
Solution
- Add a
user_agent
argument tozebra_network::init
, and pass it to the handshaker - In
zebrad::commands::start
, passapplication::app_version()
tozebra_network::init
- Use the BIP-14 format: "/Zebra:1.0.0-alpha.11/"
- Add the supplied user agent to the front of the
zebra-network
user agent string, using the BIP-14 syntax
zebra/zebra-network/src/isolated.rs
Lines 43 to 59 in c40cbee
Related Work
Make sure custom user agents conform to BIP-14 #794
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Type
Projects
Status
Done