feat(op): nonce replay (#7781)

This commit is contained in:
Emilia Hane
2024-05-01 15:44:50 +02:00
committed by GitHub
parent f832b66f99
commit 99db2b352f
8 changed files with 455 additions and 126 deletions

View File

@@ -79,6 +79,11 @@ impl StageId {
matches!(self, StageId::Headers | StageId::Bodies)
}
/// Returns `true` if it's [TransactionLookup](StageId::TransactionLookup) stage.
pub fn is_tx_lookup(&self) -> bool {
matches!(self, StageId::TransactionLookup)
}
/// Returns true indicating if it's the finish stage [StageId::Finish]
pub fn is_finish(&self) -> bool {
matches!(self, StageId::Finish)