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>,
|
signature_strs: Vec<String>,
|
||||||
config: Option<RpcSignatureStatusConfig>,
|
config: Option<RpcSignatureStatusConfig>,
|
||||||
) -> Result<RpcResponse<Vec<Option<TransactionStatus>>>>;
|
) -> Result<RpcResponse<Vec<Option<TransactionStatus>>>>;
|
||||||
|
|
||||||
|
#[rpc(name = "getVersion")]
|
||||||
|
fn get_version(&self) -> Result<RpcVersionInfo>;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct LightRpc;
|
pub struct LightRpc;
|
||||||
impl Lite for LightRpc {
|
impl Lite for LightRpc {
|
||||||
type Metadata = LightRpcRequestProcessor;
|
type Metadata = LightRpcRequestProcessor;
|
||||||
|
@ -562,6 +566,14 @@ pub mod lite_rpc {
|
||||||
Ok(signature.unwrap().to_string())
|
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(
|
fn get_performance_counters(
|
||||||
&self,
|
&self,
|
||||||
meta: Self::Metadata,
|
meta: Self::Metadata,
|
||||||
|
|
Loading…
Reference in New Issue