chore(primitives): reorder StageId variants (#3238)

This commit is contained in:
Alexey Shekhirin
2023-06-19 17:25:25 +01:00
committed by GitHub
parent 35a8096b07
commit d02c87d20e

View File

@ -5,17 +5,17 @@
#[allow(missing_docs)] #[allow(missing_docs)]
pub enum StageId { pub enum StageId {
Headers, Headers,
TotalDifficulty,
Bodies, Bodies,
SenderRecovery, SenderRecovery,
TotalDifficulty, Execution,
MerkleUnwind,
AccountHashing, AccountHashing,
StorageHashing, StorageHashing,
IndexAccountHistory,
IndexStorageHistory,
MerkleExecute, MerkleExecute,
MerkleUnwind,
Execution,
TransactionLookup, TransactionLookup,
IndexStorageHistory,
IndexAccountHistory,
Finish, Finish,
Other(&'static str), Other(&'static str),
} }
@ -24,17 +24,17 @@ impl StageId {
/// All supported Stages /// All supported Stages
pub const ALL: [StageId; 13] = [ pub const ALL: [StageId; 13] = [
StageId::Headers, StageId::Headers,
StageId::TotalDifficulty,
StageId::Bodies, StageId::Bodies,
StageId::SenderRecovery, StageId::SenderRecovery,
StageId::TotalDifficulty, StageId::Execution,
StageId::MerkleUnwind,
StageId::AccountHashing, StageId::AccountHashing,
StageId::StorageHashing, StageId::StorageHashing,
StageId::IndexAccountHistory,
StageId::IndexStorageHistory,
StageId::MerkleExecute, StageId::MerkleExecute,
StageId::MerkleUnwind,
StageId::Execution,
StageId::TransactionLookup, StageId::TransactionLookup,
StageId::IndexStorageHistory,
StageId::IndexAccountHistory,
StageId::Finish, StageId::Finish,
]; ];
@ -42,17 +42,17 @@ impl StageId {
pub fn as_str(&self) -> &str { pub fn as_str(&self) -> &str {
match self { match self {
StageId::Headers => "Headers", StageId::Headers => "Headers",
StageId::TotalDifficulty => "TotalDifficulty",
StageId::Bodies => "Bodies", StageId::Bodies => "Bodies",
StageId::SenderRecovery => "SenderRecovery", StageId::SenderRecovery => "SenderRecovery",
StageId::TotalDifficulty => "TotalDifficulty", StageId::Execution => "Execution",
StageId::MerkleUnwind => "MerkleUnwind",
StageId::AccountHashing => "AccountHashing", StageId::AccountHashing => "AccountHashing",
StageId::StorageHashing => "StorageHashing", StageId::StorageHashing => "StorageHashing",
StageId::MerkleExecute => "MerkleExecute",
StageId::TransactionLookup => "TransactionLookup",
StageId::IndexAccountHistory => "IndexAccountHistory", StageId::IndexAccountHistory => "IndexAccountHistory",
StageId::IndexStorageHistory => "IndexStorageHistory", StageId::IndexStorageHistory => "IndexStorageHistory",
StageId::MerkleExecute => "MerkleExecute",
StageId::MerkleUnwind => "MerkleUnwind",
StageId::Execution => "Execution",
StageId::TransactionLookup => "TransactionLookup",
StageId::Finish => "Finish", StageId::Finish => "Finish",
StageId::Other(s) => s, StageId::Other(s) => s,
} }