diff --git a/bin/stress-test/Cargo.toml b/bin/stress-test/Cargo.toml index e7dfaab0e..68f628b2d 100644 --- a/bin/stress-test/Cargo.toml +++ b/bin/stress-test/Cargo.toml @@ -19,7 +19,7 @@ miden-lib = { workspace = true } miden-node-proto = { workspace = true } miden-objects = { workspace = true } miden-processor = { workspace = true } -miden-node-block-producer = { workspace = true, features = ["test-utils"]} +miden-node-block-producer = { workspace = true, features = ["testing"]} miden-node-store = { workspace = true } rand = { version = "0.8" } tokio = { workspace = true, features = ["rt-multi-thread", "net", "macros", "sync", "time"] } diff --git a/crates/block-producer/Cargo.toml b/crates/block-producer/Cargo.toml index 6c7a04be1..c92a22e71 100644 --- a/crates/block-producer/Cargo.toml +++ b/crates/block-producer/Cargo.toml @@ -13,7 +13,7 @@ repository.workspace = true [features] tracing-forest = ["miden-node-utils/tracing-forest"] -test-utils = [] +testing = [] [dependencies] async-trait = { version = "0.1" } diff --git a/crates/block-producer/src/batch_builder/batch.rs b/crates/block-producer/src/batch_builder/batch.rs index 5e289d6f1..7fc23e46a 100644 --- a/crates/block-producer/src/batch_builder/batch.rs +++ b/crates/block-producer/src/batch_builder/batch.rs @@ -212,7 +212,7 @@ impl TransactionBatch { /// Returns an iterator over (account_id, init_state_hash) tuples for accounts that were /// modified in this transaction batch. - #[cfg(any(test, feature = "test-utils"))] + #[cfg(any(test, feature = "testing"))] pub fn account_initial_states(&self) -> impl Iterator + '_ { self.updated_accounts .iter() diff --git a/crates/block-producer/src/batch_builder/mod.rs b/crates/block-producer/src/batch_builder/mod.rs index c504e4c7a..bfd12c03c 100644 --- a/crates/block-producer/src/batch_builder/mod.rs +++ b/crates/block-producer/src/batch_builder/mod.rs @@ -22,9 +22,9 @@ use crate::errors::BuildBatchError; /// Builds [TransactionBatch] from sets of transactions. /// -/// Transaction sets are pulled from the [Mempool] at a configurable interval, and passed to a pool -/// of provers for proof generation. Proving is currently unimplemented and is instead simulated via -/// the given proof time and failure rate. +/// Transaction sets are pulled from the [SharedMempool] at a configurable interval, and passed to a +/// pool of provers for proof generation. Proving is currently unimplemented and is instead +/// simulated via the given proof time and failure rate. pub struct BatchBuilder { pub batch_interval: Duration, pub workers: NonZeroUsize, diff --git a/crates/block-producer/src/domain/transaction.rs b/crates/block-producer/src/domain/transaction.rs index 4db781a68..dccc0a592 100644 --- a/crates/block-producer/src/domain/transaction.rs +++ b/crates/block-producer/src/domain/transaction.rs @@ -119,7 +119,7 @@ impl AuthenticatedTransaction { } } -#[cfg(any(test, feature = "test-utils"))] +#[cfg(any(test, feature = "testing"))] impl AuthenticatedTransaction { //! Builder methods intended for easier test setup. diff --git a/crates/block-producer/src/lib.rs b/crates/block-producer/src/lib.rs index 515904224..f40dd1ca8 100644 --- a/crates/block-producer/src/lib.rs +++ b/crates/block-producer/src/lib.rs @@ -2,7 +2,7 @@ use std::time::Duration; use mempool::BlockNumber; -#[cfg(any(test, feature = "test-utils"))] +#[cfg(any(test, feature = "testing"))] pub mod test_utils; pub mod batch_builder;