Skip to content

Commit

Permalink
feat(node): adding agent version (eigerco#379)
Browse files Browse the repository at this point in the history
Signed-off-by: Yiannis Marangos <psyberbits@gmail.com>
Co-authored-by: Yiannis Marangos <psyberbits@gmail.com>
Co-authored-by: zvolin <mac.zwolinski@gmail.com>
  • Loading branch information
3 people committed Sep 20, 2024
1 parent fb5d925 commit de23c52
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions node/src/p2p.rs
Original file line number Diff line number Diff line change
Expand Up @@ -612,10 +612,11 @@ where
let autonat = autonat::Behaviour::new(local_peer_id, autonat::Config::default());
let ping = ping::Behaviour::new(ping::Config::default());

let identify = identify::Behaviour::new(identify::Config::new(
String::new(),
args.local_keypair.public(),
));
let agent_version = format!("lumina/{}/{}", args.network_id, env!("CARGO_PKG_VERSION"));
let identify = identify::Behaviour::new(
identify::Config::new(String::new(), args.local_keypair.public())
.with_agent_version(agent_version),
);

let header_sub_topic = gossipsub_ident_topic(&args.network_id, "/header-sub/v0.0.1");
let bad_encoding_fraud_sub_topic =
Expand Down

0 comments on commit de23c52

Please sign in to comment.