mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore(primitives): reorder StageId variants (#3238)
This commit is contained in:
@ -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,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user