Skip to content

Commit

Permalink
chore: transaction evm input mismatch shoudl not be an error
Browse files Browse the repository at this point in the history
  • Loading branch information
carneiro-cw committed Nov 29, 2024
1 parent 5538661 commit 9f34fc6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/eth/storage/stratus_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,12 @@ impl Storage for StratusStorage {
timed(|| self.temp.save_pending_execution(tx, check_conflicts))
.with(|m| {
metrics::inc_storage_save_execution(m.elapsed, label::TEMP, m.result.is_ok());
if let Err(ref e) = m.result {
tracing::error!(reason = ?e, "failed to save execution");
match m.result {
Err(StratusError::TransactionEvmInputMismatch { expected, actual }) => {
tracing::warn!("failed to save execution due to mismatch, will retry");
}
Err(ref e) => tracing::error!(reason = ?e, "failed to save execution"),
ok => (),
}
})
.map_err(Into::into)
Expand Down

0 comments on commit 9f34fc6

Please sign in to comment.