Skip to content

Commit

Permalink
refactor: rename feature testing
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasArrachea committed Jan 17, 2025
1 parent 16b8657 commit 721b97c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/stress-test/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/block-producer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repository.workspace = true

[features]
tracing-forest = ["miden-node-utils/tracing-forest"]
test-utils = []
testing = []

[dependencies]
async-trait = { version = "0.1" }
Expand Down
2 changes: 1 addition & 1 deletion crates/block-producer/src/batch_builder/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Item = (AccountId, Digest)> + '_ {
self.updated_accounts
.iter()
Expand Down
6 changes: 3 additions & 3 deletions crates/block-producer/src/batch_builder/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion crates/block-producer/src/domain/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion crates/block-producer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 721b97c

Please sign in to comment.