node: include git hash into user agent

This commit is contained in:
ardocrat
2026-05-02 20:55:32 +03:00
parent 95486a4bc0
commit 5bebacd605
6 changed files with 55 additions and 6 deletions
+3 -2
View File
@@ -95,7 +95,7 @@ impl Status {
Status {
chain: global::get_chain_type().shortname(),
protocol_version: ser::ProtocolVersion::local().into(),
user_agent: p2p::msg::USER_AGENT.to_string(),
user_agent: p2p::msg::user_agent().to_string(),
connections: connections,
tip: Tip::from_tip(current_tip),
sync_status,
@@ -465,7 +465,8 @@ impl<'de> serde::de::Deserialize<'de> for OutputPrintable {
}
if output_type.is_none()
|| commit.is_none() || spent.is_none()
|| commit.is_none()
|| spent.is_none()
|| proof_hash.is_none()
|| mmr_index.is_none()
{