Skip to content

Commit

Permalink
chore: add commit to client version (paradigmxyz#3621)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse committed Jul 6, 2023
1 parent f3c7a82 commit 6347aac
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions bin/reth/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,25 @@ pub(crate) const LONG_VERSION: &str = concat!(
env!("VERGEN_CARGO_FEATURES")
);

/// The version information for reth formatted for P2P.
/// The version information for reth formatted for P2P (devp2p).
///
/// - The latest version from Cargo.toml
/// - The target triple
///
/// # Example
///
/// ```text
/// reth/v{major}.{minor}.{patch}/{target}
/// reth/v{major}.{minor}.{patch}-{sha1}/{target}
/// ```
pub(crate) const P2P_CLIENT_VERSION: &str =
concat!("reth/v", env!("CARGO_PKG_VERSION"), "/", env!("VERGEN_CARGO_TARGET_TRIPLE"));
/// e.g.: `reth/v0.1.0-alpha.1-428a6dc2f/aarch64-apple-darwin`
pub(crate) const P2P_CLIENT_VERSION: &str = concat!(
"reth/v",
env!("CARGO_PKG_VERSION"),
"-",
env!("VERGEN_GIT_SHA"),
"/",
env!("VERGEN_CARGO_TARGET_TRIPLE")
);

/// The default extradata used for payload building.
///
Expand Down

0 comments on commit 6347aac

Please sign in to comment.