Skip to content

Commit 19a27d5

Browse files
committed
renamed to execute_with_limited_execution_time
1 parent 0ddfbdd commit 19a27d5

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

clarity/src/vm/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ pub fn execute(program: &str) -> Result<Option<Value>> {
607607

608608
/// Execute for test in Clarity1, Epoch20, testnet.
609609
#[cfg(any(test, feature = "testing"))]
610-
pub fn execute_with_max_execution_time(
610+
pub fn execute_with_limited_execution_time(
611611
program: &str,
612612
max_execution_time: std::time::Duration,
613613
) -> Result<Option<Value>> {

clarity/src/vm/tests/simple_apply_eval.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ use crate::vm::types::{
4040
};
4141
use crate::vm::{
4242
eval, execute as vm_execute, execute_v2 as vm_execute_v2,
43-
execute_with_max_execution_time as vm_execute_with_max_execution_time, execute_with_parameters,
44-
CallStack, ClarityVersion, ContractContext, CostErrors, Environment, GlobalContext,
45-
LocalContext, Value,
43+
execute_with_limited_execution_time as vm_execute_with_limited_execution_time,
44+
execute_with_parameters, CallStack, ClarityVersion, ContractContext, CostErrors, Environment,
45+
GlobalContext, LocalContext, Value,
4646
};
4747

4848
#[test]
@@ -1771,7 +1771,7 @@ fn test_chain_id() {
17711771
#[test]
17721772
fn test_execution_time_expiration() {
17731773
assert_eq!(
1774-
vm_execute_with_max_execution_time("(+ 1 1)", Duration::from_secs(0))
1774+
vm_execute_with_limited_execution_time("(+ 1 1)", Duration::from_secs(0))
17751775
.err()
17761776
.unwrap(),
17771777
CostErrors::ExecutionTimeExpired.into()

testnet/stacks-node/src/tests/signer/v0.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12554,8 +12554,8 @@ fn miner_rejection_by_contract_call_execution_time_expired() {
1255412554
signer_config.tenure_last_block_proposal_timeout = Duration::from_secs(1800);
1255512555
signer_config.first_proposal_burn_block_timing = Duration::from_secs(1800);
1255612556
},
12557-
|config| config.miner.max_execution_time = Some(0),
12558-
|config| config.miner.max_execution_time = None,
12557+
|config| config.miner.max_execution_time_secs = Some(0),
12558+
|config| config.miner.max_execution_time_secs = None,
1255912559
);
1256012560
let rl1_skip_commit_op = miners
1256112561
.signer_test

0 commit comments

Comments
 (0)