From 02826a989edef9fd53aa17efd56117e2025ec49f Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Mon, 1 Nov 2021 20:04:29 -0600 Subject: [PATCH] Change module name to represent correct branch (#21125) --- rpc/src/rpc.rs | 12 ++++++------ rpc/src/rpc_service.rs | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/rpc/src/rpc.rs b/rpc/src/rpc.rs index 548d0644f9..047d85aad8 100644 --- a/rpc/src/rpc.rs +++ b/rpc/src/rpc.rs @@ -3715,11 +3715,11 @@ pub mod rpc_full { } // RPC methods deprecated in v1.8 -pub mod rpc_deprecated_v1_8 { +pub mod rpc_deprecated_v1_9 { #![allow(deprecated)] use super::*; #[rpc] - pub trait DeprecatedV1_8 { + pub trait DeprecatedV1_9 { type Metadata; #[rpc(meta, name = "getRecentBlockhash")] @@ -3754,8 +3754,8 @@ pub mod rpc_deprecated_v1_8 { fn get_snapshot_slot(&self, meta: Self::Metadata) -> Result; } - pub struct DeprecatedV1_8Impl; - impl DeprecatedV1_8 for DeprecatedV1_8Impl { + pub struct DeprecatedV1_9Impl; + impl DeprecatedV1_9 for DeprecatedV1_9Impl { type Metadata = JsonRpcRequestProcessor; fn get_recent_blockhash( @@ -4265,7 +4265,7 @@ pub fn create_test_transactions_and_populate_blockstore( pub mod tests { use { super::{ - rpc_accounts::*, rpc_bank::*, rpc_deprecated_v1_8::*, rpc_full::*, rpc_minimal::*, *, + rpc_accounts::*, rpc_bank::*, rpc_deprecated_v1_9::*, rpc_full::*, rpc_minimal::*, *, }, crate::{ optimistically_confirmed_bank_tracker::{ @@ -4508,7 +4508,7 @@ pub mod tests { io.extend_with(rpc_bank::BankDataImpl.to_delegate()); io.extend_with(rpc_accounts::AccountsDataImpl.to_delegate()); io.extend_with(rpc_full::FullImpl.to_delegate()); - io.extend_with(rpc_deprecated_v1_8::DeprecatedV1_8Impl.to_delegate()); + io.extend_with(rpc_deprecated_v1_9::DeprecatedV1_9Impl.to_delegate()); RpcHandler { io, meta, diff --git a/rpc/src/rpc_service.rs b/rpc/src/rpc_service.rs index b3e42cbb16..0d1eb13c90 100644 --- a/rpc/src/rpc_service.rs +++ b/rpc/src/rpc_service.rs @@ -6,7 +6,7 @@ use { max_slots::MaxSlots, optimistically_confirmed_bank_tracker::OptimisticallyConfirmedBank, rpc::{ - rpc_accounts::*, rpc_bank::*, rpc_deprecated_v1_7::*, rpc_deprecated_v1_8::*, + rpc_accounts::*, rpc_bank::*, rpc_deprecated_v1_7::*, rpc_deprecated_v1_9::*, rpc_full::*, rpc_minimal::*, rpc_obsolete_v1_7::*, *, }, rpc_health::*, @@ -419,7 +419,7 @@ impl JsonRpcService { io.extend_with(rpc_accounts::AccountsDataImpl.to_delegate()); io.extend_with(rpc_full::FullImpl.to_delegate()); io.extend_with(rpc_deprecated_v1_7::DeprecatedV1_7Impl.to_delegate()); - io.extend_with(rpc_deprecated_v1_8::DeprecatedV1_8Impl.to_delegate()); + io.extend_with(rpc_deprecated_v1_9::DeprecatedV1_9Impl.to_delegate()); } if obsolete_v1_7_api { io.extend_with(rpc_obsolete_v1_7::ObsoleteV1_7Impl.to_delegate());