Skip to content

Commit

Permalink
[execution] Invariant violations are internal errors (MystenLabs#10663)
Browse files Browse the repository at this point in the history
## Description

While the other execution error traces can be triggered by user error,
it's only possible to trigger an invariant violation if there is a bug
-- this should be treated as a legitimate error.

## Test Plan

CI
  • Loading branch information
amnn authored Apr 10, 2023
1 parent 5f18121 commit 85ecde5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/sui-adapter/src/execution_engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ pub fn execute_transaction_to_effects<
K::InvariantViolation |
K::VMInvariantViolation => {
#[skip_checked_arithmetic]
tracing::debug!(
tracing::error!(
kind = ?error.kind(),
tx_digest = ?transaction_digest,
"INVARIANT VIOLATION! Source: {:?}",
Expand Down

0 comments on commit 85ecde5

Please sign in to comment.