diff --git a/src/rpc.rs b/src/rpc.rs index 294ad1c4..8fed9bad 100644 --- a/src/rpc.rs +++ b/src/rpc.rs @@ -328,7 +328,11 @@ pub mod lite_rpc { signature_strs: Vec, config: Option, ) -> Result>>>; + + #[rpc(name = "getVersion")] + fn get_version(&self) -> Result; } + pub struct LightRpc; impl Lite for LightRpc { type Metadata = LightRpcRequestProcessor; @@ -562,6 +566,14 @@ pub mod lite_rpc { Ok(signature.unwrap().to_string()) } + fn get_version(&self) -> Result { + let version = solana_version::Version::default(); + Ok(RpcVersionInfo { + solana_core: version.to_string(), + feature_set: Some(version.feature_set), + }) + } + fn get_performance_counters( &self, meta: Self::Metadata,