miden_node_ntx_builder/
lib.rs

1use std::num::NonZeroUsize;
2
3mod block_producer;
4mod builder;
5mod state;
6mod store;
7mod transaction;
8
9pub use builder::NetworkTransactionBuilder;
10
11// CONSTANTS
12// =================================================================================================
13
14const COMPONENT: &str = "miden-ntx-builder";
15
16/// Maximum number of network notes a network transaction is allowed to consume.
17const MAX_NOTES_PER_TX: NonZeroUsize = NonZeroUsize::new(50).unwrap();
18
19/// Maximum number of network transactions which should be in progress concurrently.
20///
21/// This only counts transactions which are being computed locally and does not include
22/// uncommitted transactions in the mempool.
23const MAX_IN_PROGRESS_TXS: usize = 4;