Skip to content

Commit

Permalink
Move CacheBlockMetaService from solana-core to solana-rpc (#4031)
Browse files Browse the repository at this point in the history
The service is only created when a node is running with RPC flags
  • Loading branch information
steviez authored Dec 11, 2024
1 parent 9da143a commit 8c3a6bb
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pub mod admin_rpc_post_init;
pub mod banking_simulation;
pub mod banking_stage;
pub mod banking_trace;
pub mod cache_block_meta_service;
pub mod cluster_info_vote_listener;
pub mod cluster_slots_service;
pub mod commitment_service;
Expand Down
2 changes: 1 addition & 1 deletion core/src/replay_stage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
use {
crate::{
banking_trace::BankingTracer,
cache_block_meta_service::CacheBlockMetaSender,
cluster_info_vote_listener::{
DuplicateConfirmedSlotsReceiver, GossipVerifiedVoteHashReceiver, VoteTracker,
},
Expand Down Expand Up @@ -51,6 +50,7 @@ use {
solana_measure::measure::Measure,
solana_poh::poh_recorder::{PohLeaderStatus, PohRecorder, GRACE_TICKS_FACTOR, MAX_GRACE_SLOTS},
solana_rpc::{
cache_block_meta_service::CacheBlockMetaSender,
optimistically_confirmed_bank_tracker::{BankNotification, BankNotificationSenderConfig},
rpc_subscriptions::RpcSubscriptions,
slot_status_notifier::SlotStatusNotifier,
Expand Down
4 changes: 2 additions & 2 deletions core/src/tvu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
use {
crate::{
banking_trace::BankingTracer,
cache_block_meta_service::CacheBlockMetaSender,
cluster_info_vote_listener::{
DuplicateConfirmedSlotsReceiver, GossipVerifiedVoteHashReceiver, VerifiedVoteReceiver,
VoteTracker,
Expand Down Expand Up @@ -38,7 +37,8 @@ use {
},
solana_poh::poh_recorder::PohRecorder,
solana_rpc::{
max_slots::MaxSlots, optimistically_confirmed_bank_tracker::BankNotificationSenderConfig,
cache_block_meta_service::CacheBlockMetaSender, max_slots::MaxSlots,
optimistically_confirmed_bank_tracker::BankNotificationSenderConfig,
rpc_subscriptions::RpcSubscriptions, slot_status_notifier::SlotStatusNotifier,
},
solana_runtime::{
Expand Down
2 changes: 1 addition & 1 deletion core/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use {
accounts_hash_verifier::AccountsHashVerifier,
admin_rpc_post_init::AdminRpcRequestMetadataPostInit,
banking_trace::{self, BankingTracer, TraceError},
cache_block_meta_service::{CacheBlockMetaSender, CacheBlockMetaService},
cluster_info_vote_listener::VoteTracker,
completed_data_sets_service::CompletedDataSetsService,
consensus::{
Expand Down Expand Up @@ -82,6 +81,7 @@ use {
},
solana_rayon_threadlimit::{get_max_thread_count, get_thread_count},
solana_rpc::{
cache_block_meta_service::{CacheBlockMetaSender, CacheBlockMetaService},
max_slots::MaxSlots,
optimistically_confirmed_bank_tracker::{
BankNotificationSenderConfig, OptimisticallyConfirmedBank,
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions rpc/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#![allow(clippy::arithmetic_side_effects)]
pub mod cache_block_meta_service;
mod cluster_tpu_info;
pub mod filter;
pub mod max_slots;
Expand Down

0 comments on commit 8c3a6bb

Please sign in to comment.