Handle Lodestar's new agent string ()

## Issue Addressed

 

## Proposed Changes

Recognize Lodestars new agent string and appropriately count these peers as lodestar peers.
This commit is contained in:
Age Manning 2022-09-29 01:50:13 +00:00
parent 01b6bf7a2d
commit 27bb9ff07d

View File

@ -181,7 +181,7 @@ fn client_from_agent_version(agent_version: &str) -> (ClientKind, String, String
}
(kind, version, os_version)
}
Some("js-libp2p") => {
Some("js-libp2p") | Some("lodestar") => {
let kind = ClientKind::Lodestar;
let mut version = String::from("unknown");
let mut os_version = version.clone();