get version
This commit is contained in:
parent
2e1e99b117
commit
86c84df6db
12
src/rpc.rs
12
src/rpc.rs
|
@ -328,7 +328,11 @@ pub mod lite_rpc {
|
|||
signature_strs: Vec<String>,
|
||||
config: Option<RpcSignatureStatusConfig>,
|
||||
) -> Result<RpcResponse<Vec<Option<TransactionStatus>>>>;
|
||||
|
||||
#[rpc(name = "getVersion")]
|
||||
fn get_version(&self) -> Result<RpcVersionInfo>;
|
||||
}
|
||||
|
||||
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<RpcVersionInfo> {
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue