Bump RpcClient node versions (#21612)
* Bump blockhash/fee api check versions * Bump snapshot api check version
This commit is contained in:
parent
f4ca87205f
commit
3e5a5a834f
|
@ -1329,7 +1329,7 @@ impl RpcClient {
|
||||||
/// # Ok::<(), ClientError>(())
|
/// # Ok::<(), ClientError>(())
|
||||||
/// ```
|
/// ```
|
||||||
pub fn get_highest_snapshot_slot(&self) -> ClientResult<RpcSnapshotSlotInfo> {
|
pub fn get_highest_snapshot_slot(&self) -> ClientResult<RpcSnapshotSlotInfo> {
|
||||||
if self.get_node_version()? < semver::Version::new(1, 8, 0) {
|
if self.get_node_version()? < semver::Version::new(1, 9, 0) {
|
||||||
#[allow(deprecated)]
|
#[allow(deprecated)]
|
||||||
self.get_snapshot_slot().map(|full| RpcSnapshotSlotInfo {
|
self.get_snapshot_slot().map(|full| RpcSnapshotSlotInfo {
|
||||||
full,
|
full,
|
||||||
|
@ -4747,7 +4747,7 @@ impl RpcClient {
|
||||||
commitment: CommitmentConfig,
|
commitment: CommitmentConfig,
|
||||||
) -> ClientResult<(Hash, u64)> {
|
) -> ClientResult<(Hash, u64)> {
|
||||||
let (blockhash, last_valid_block_height) =
|
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 {
|
let Fees {
|
||||||
blockhash,
|
blockhash,
|
||||||
last_valid_block_height,
|
last_valid_block_height,
|
||||||
|
@ -4781,7 +4781,7 @@ impl RpcClient {
|
||||||
blockhash: &Hash,
|
blockhash: &Hash,
|
||||||
commitment: CommitmentConfig,
|
commitment: CommitmentConfig,
|
||||||
) -> ClientResult<bool> {
|
) -> ClientResult<bool> {
|
||||||
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)?
|
self.get_fee_calculator_for_blockhash_with_commitment(blockhash, commitment)?
|
||||||
.value
|
.value
|
||||||
.is_some()
|
.is_some()
|
||||||
|
|
Loading…
Reference in New Issue