Skip to content

Commit

Permalink
firedancer: report client as firedancer via. gossip
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcgee-jump authored and alpeng-jump committed Sep 16, 2024
1 parent 9f35219 commit d7c3bc8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
8 changes: 4 additions & 4 deletions version/src/legacy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ impl Default for LegacyVersion2 {
.unwrap(),
);
Self {
major: env!("CARGO_PKG_VERSION_MAJOR").parse().unwrap(),
minor: env!("CARGO_PKG_VERSION_MINOR").parse().unwrap(),
patch: env!("CARGO_PKG_VERSION_PATCH").parse().unwrap(),
commit: compute_commit(option_env!("CI_COMMIT")),
major: env!("FIREDANCER_VERSION_MAJOR").parse().unwrap(),
minor: env!("FIREDANCER_VERSION_MINOR").parse().unwrap(),
patch: env!("FIREDANCER_VERSION_PATCH").parse().unwrap(),
commit: compute_commit(option_env!("FIREDANCER_CI_COMMIT")),
feature_set,
}
}
Expand Down
11 changes: 6 additions & 5 deletions version/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,14 @@ impl Default for Version {
.unwrap(),
);
Self {
major: env!("CARGO_PKG_VERSION_MAJOR").parse().unwrap(),
minor: env!("CARGO_PKG_VERSION_MINOR").parse().unwrap(),
patch: env!("CARGO_PKG_VERSION_PATCH").parse().unwrap(),
commit: compute_commit(option_env!("CI_COMMIT")).unwrap_or_default(),
// FIREDANCER: Report client as Firedancer to gossip
major: env!("FIREDANCER_VERSION_MAJOR").parse().unwrap(),
minor: env!("FIREDANCER_VERSION_MINOR").parse().unwrap(),
patch: env!("FIREDANCER_VERSION_PATCH").parse().unwrap(),
commit: compute_commit(option_env!("FIREDANCER_CI_COMMIT")).unwrap_or_default(),
feature_set,
// Other client implementations need to modify this line.
client: u16::try_from(ClientId::Agave).unwrap(),
client: u16::try_from(ClientId::Firedancer).unwrap(),
}
}
}
Expand Down

0 comments on commit d7c3bc8

Please sign in to comment.