We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45cbc41 commit 7c2aeb0Copy full SHA for 7c2aeb0
1 file changed
src/scheduler.rs
@@ -367,6 +367,15 @@ where
367
break;
368
}
369
let mut tx_state = self.tx_states[finality_idx].lock();
370
+ if tx_state.status != TransactionStatus::Unconfirmed {
371
+ tracing::warn!(target: "grevm::scheduler",
372
+ block_number = %self.env.number,
373
+ finality_idx = finality_idx,
374
+ tx_status = ?tx_state.status,
375
+ "transaction shoud by marked as finality, but with wrong status"
376
+ );
377
+ break;
378
+ }
379
tx_state.status = TransactionStatus::Finality;
380
self.scheduler_ctx.finality_idx.fetch_add(1, Ordering::AcqRel);
381
0 commit comments