Skip to main content

miden_node_ntx_builder/
lib.rs

1use std::num::NonZeroUsize;
2
3mod actor;
4mod block_producer;
5mod builder;
6mod coordinator;
7mod store;
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(20).unwrap();
18const _: () = assert!(MAX_NOTES_PER_TX.get() <= miden_tx::MAX_NUM_CHECKER_NOTES);
19
20/// Maximum number of network transactions which should be in progress concurrently.
21///
22/// This only counts transactions which are being computed locally and does not include
23/// uncommitted transactions in the mempool.
24const MAX_IN_PROGRESS_TXS: usize = 4;