Advertise node version in gossip (#9986)

automerge
This commit is contained in:
Michael Vines
2020-05-11 17:45:19 -07:00
committed by GitHub
parent eb11db3e3e
commit 8d7e90e9b8
10 changed files with 166 additions and 20 deletions

View File

@@ -1474,7 +1474,7 @@ impl RpcSol for RpcSolImpl {
fn get_version(&self, _: Self::Metadata) -> Result<RpcVersionInfo> {
Ok(RpcVersionInfo {
solana_core: solana_clap_utils::version!().to_string(),
solana_core: solana_version::Version::default().to_string(),
})
}
@@ -2637,7 +2637,7 @@ pub mod tests {
let expected = json!({
"jsonrpc": "2.0",
"result": {
"solana-core": solana_clap_utils::version!().to_string()
"solana-core": solana_version::version!().to_string()
},
"id": 1
});