diff --git a/client/src/rpc_client.rs b/client/src/rpc_client.rs index 112c49ab2..98349fec8 100644 --- a/client/src/rpc_client.rs +++ b/client/src/rpc_client.rs @@ -1041,7 +1041,15 @@ impl RpcClient { /// # Ok::<(), ClientError>(()) /// ``` pub fn get_highest_snapshot_slot(&self) -> ClientResult { - self.send(RpcRequest::GetHighestSnapshotSlot, Value::Null) + if self.get_node_version()? < semver::Version::new(1, 8, 0) { + #[allow(deprecated)] + self.get_snapshot_slot().map(|full| RpcSnapshotSlotInfo { + full, + incremental: None, + }) + } else { + self.send(RpcRequest::GetHighestSnapshotSlot, Value::Null) + } } #[deprecated(