From 3e28ffa8847104373e387c04a4aeb16c5b1e2829 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sun, 5 Dec 2021 01:08:22 +0000 Subject: [PATCH] Bump RpcClient node versions (#21612) (#21613) * Bump blockhash/fee api check versions * Bump snapshot api check version (cherry picked from commit 3e5a5a834f2b1e1e80e65ec0e196c9db6cfbb2fa) Co-authored-by: Tyera Eulberg --- client/src/rpc_client.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/rpc_client.rs b/client/src/rpc_client.rs index afccbb7ba5..e36169a85f 100644 --- a/client/src/rpc_client.rs +++ b/client/src/rpc_client.rs @@ -1329,7 +1329,7 @@ impl RpcClient { /// # Ok::<(), ClientError>(()) /// ``` pub fn get_highest_snapshot_slot(&self) -> ClientResult { - if self.get_node_version()? < semver::Version::new(1, 8, 0) { + if self.get_node_version()? < semver::Version::new(1, 9, 0) { #[allow(deprecated)] self.get_snapshot_slot().map(|full| RpcSnapshotSlotInfo { full, @@ -4747,7 +4747,7 @@ impl RpcClient { commitment: CommitmentConfig, ) -> ClientResult<(Hash, u64)> { let (blockhash, last_valid_block_height) = - if self.get_node_version()? < semver::Version::new(1, 8, 0) { + if self.get_node_version()? < semver::Version::new(1, 9, 0) { let Fees { blockhash, last_valid_block_height, @@ -4781,7 +4781,7 @@ impl RpcClient { blockhash: &Hash, commitment: CommitmentConfig, ) -> ClientResult { - let result = if self.get_node_version()? < semver::Version::new(1, 8, 0) { + let result = if self.get_node_version()? < semver::Version::new(1, 9, 0) { self.get_fee_calculator_for_blockhash_with_commitment(blockhash, commitment)? .value .is_some()