Change module name to represent correct branch (#21125)
This commit is contained in:
parent
1b47f7f2cd
commit
02826a989e
|
@ -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<Slot>;
|
||||
}
|
||||
|
||||
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,
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue