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;
8mod validator;
9
10pub use builder::NetworkTransactionBuilder;
11
12// CONSTANTS
13// =================================================================================================
14
15const COMPONENT: &str = "miden-ntx-builder";
16
17/// Maximum number of network notes a network transaction is allowed to consume.
18const MAX_NOTES_PER_TX: NonZeroUsize = NonZeroUsize::new(20).unwrap();
19const _: () = assert!(MAX_NOTES_PER_TX.get() <= miden_tx::MAX_NUM_CHECKER_NOTES);
20
21/// Maximum number of network transactions which should be in progress concurrently.
22///
23/// This only counts transactions which are being computed locally and does not include
24/// uncommitted transactions in the mempool.
25const MAX_IN_PROGRESS_TXS: usize = 4;