Skip to content

Commit 7c2aeb0

Browse files
authored
fix: review security audit findings round 3 (#101)
1 parent 45cbc41 commit 7c2aeb0

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/scheduler.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,15 @@ where
367367
break;
368368
}
369369
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+
}
370379
tx_state.status = TransactionStatus::Finality;
371380
self.scheduler_ctx.finality_idx.fetch_add(1, Ordering::AcqRel);
372381

0 commit comments

Comments
 (0)