diff --git a/Cargo.lock b/Cargo.lock index 66a851dfe99a5b..66b220af75ca97 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6456,6 +6456,7 @@ dependencies = [ "num_cpus", "num_enum", "prost", + "qualifier_attr", "rand 0.8.5", "rand_chacha 0.3.1", "rayon", diff --git a/ledger/Cargo.toml b/ledger/Cargo.toml index 8ac69167384bf2..3499216d4784ed 100644 --- a/ledger/Cargo.toml +++ b/ledger/Cargo.toml @@ -31,6 +31,7 @@ mockall = { workspace = true } num_cpus = { workspace = true } num_enum = { workspace = true } prost = { workspace = true } +qualifier_attr = { workspace = true } rand = { workspace = true } rand_chacha = { workspace = true } rayon = { workspace = true } diff --git a/ledger/src/blockstore_processor.rs b/ledger/src/blockstore_processor.rs index 2c660cbcc51c08..a98e349e94236b 100644 --- a/ledger/src/blockstore_processor.rs +++ b/ledger/src/blockstore_processor.rs @@ -1,3 +1,5 @@ +#[cfg(feature = "dev-context-only-utils")] +use qualifier_attr::qualifiers; use { crate::{ block_error::BlockError, @@ -1078,7 +1080,8 @@ fn verify_ticks( } #[allow(clippy::too_many_arguments)] -pub fn confirm_full_slot( +#[cfg_attr(feature = "dev-context-only-utils", qualifiers(pub))] +fn confirm_full_slot( blockstore: &Blockstore, bank: &BankWithScheduler, replay_tx_thread_pool: &ThreadPool, @@ -1684,7 +1687,8 @@ fn confirm_slot_entries( } // Special handling required for processing the entries in slot 0 -pub fn process_bank_0( +#[cfg_attr(feature = "dev-context-only-utils", qualifiers(pub))] +fn process_bank_0( bank0: &BankWithScheduler, blockstore: &Blockstore, replay_tx_thread_pool: &ThreadPool, diff --git a/programs/sbf/Cargo.lock b/programs/sbf/Cargo.lock index a96a8c04b65763..9346d33507d9f5 100644 --- a/programs/sbf/Cargo.lock +++ b/programs/sbf/Cargo.lock @@ -5090,6 +5090,7 @@ dependencies = [ "num_cpus", "num_enum", "prost", + "qualifier_attr", "rand 0.8.5", "rand_chacha 0.3.1", "rayon",