mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 21:38:31 +00:00
Encode Execution Engine Client Version In Graffiti (#5290)
* Add `engine_clientVersionV1` structs * Implement `engine_clientVersionV1` * Update to latest spec changes * Implement GraffitiCalculator Service * Added Unit Tests for GraffitiCalculator * Address Mac's Comments * Remove need to use clap in beacon chain * Merge remote-tracking branch 'upstream/unstable' into el_client_version_graffiti * Merge branch 'unstable' into el_client_version_graffiti # Conflicts: # beacon_node/beacon_chain/Cargo.toml
This commit is contained in:
@@ -21,6 +21,24 @@ pub const VERSION: &str = git_version!(
|
||||
fallback = "Lighthouse/v5.1.3"
|
||||
);
|
||||
|
||||
/// Returns the first eight characters of the latest commit hash for this build.
|
||||
///
|
||||
/// No indication is given if the tree is dirty. This is part of the standard
|
||||
/// for reporting the client version to the execution engine.
|
||||
pub const COMMIT_PREFIX: &str = git_version!(
|
||||
args = [
|
||||
"--always",
|
||||
"--abbrev=8",
|
||||
// NOTE: using --match instead of --exclude for compatibility with old Git
|
||||
"--match=thiswillnevermatchlol"
|
||||
],
|
||||
prefix = "",
|
||||
suffix = "",
|
||||
cargo_prefix = "",
|
||||
cargo_suffix = "",
|
||||
fallback = "00000000"
|
||||
);
|
||||
|
||||
/// Returns `VERSION`, but with platform information appended to the end.
|
||||
///
|
||||
/// ## Example
|
||||
|
||||
Reference in New Issue
Block a user