Skip to content

Commit

Permalink
temp
Browse files Browse the repository at this point in the history
  • Loading branch information
rahxephon89 committed Aug 5, 2024
1 parent 5b8576a commit ace43e6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion aptos-move/aptos-e2e-comparison-testing/src/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ impl Execution {
let mut txns = vec![txn.clone()];
for txn in &mut txns {
if let UserTransaction(signed_transaction) = txn {
signed_transaction.set_max_gmount(min(2_000_000, signed_transaction.max_gas_amount() * 2));
// signed_transaction.set_max_gmount(min(100_000, signed_transaction.max_gas_amount() * 2));
}
}
if let Some(debugger) = debugger_opt {
Expand Down
1 change: 0 additions & 1 deletion aptos-move/aptos-gas-meter/src/algebra.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ impl GasAlgebra for StandardGasAlgebra {
if self.feature_version < 12 {
self.execution_gas_used += amount;
}
Ok(())
if self.feature_version >= 7 && self.execution_gas_used > self.max_execution_gas {
println!("self.execution_gas_used:{}, self.max_execution_gas:{}", self.execution_gas_used, self.max_execution_gas);

Check warning on line 180 in aptos-move/aptos-gas-meter/src/algebra.rs

View check run for this annotation

Codecov / codecov/patch

aptos-move/aptos-gas-meter/src/algebra.rs#L180

Added line #L180 was not covered by tests
Err(PartialVMError::new(StatusCode::EXECUTION_LIMIT_REACHED))
Expand Down

0 comments on commit ace43e6

Please sign in to comment.