clementine_core::constants

Constant MAX_SCRIPT_REPLACEMENT_OPERATIONS

Source
pub const MAX_SCRIPT_REPLACEMENT_OPERATIONS: usize = 100_000;
Expand description

The maximum number of script replacement operations allowed in a single BitVM operation. This is a safeguard to prevent excessive resource usage and ensure that the BitVM protocol remains efficient and manageable. The limit is set to 100,000 operations, which is a reasonable upper bound for script replacement operations in the context of BitVM, which is normally a constant equal to 47544.