Skip to content

Commit

Permalink
feat(reth): remove History variant in StageEnum (#4365)
Browse files Browse the repository at this point in the history
  • Loading branch information
tcoratger authored Aug 28, 2023
1 parent b2a0548 commit 72b211e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions bin/reth/src/args/stage_args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ pub enum StageEnum {
Hashing,
Merkle,
TxLookup,
// TODO: Combine or remove `History` variant.
History,
AccountHistory,
StorageHistory,
TotalDifficulty,
Expand Down
2 changes: 1 addition & 1 deletion bin/reth/src/stage/drop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl Command {
None,
)?;
}
StageEnum::History => {
StageEnum::AccountHistory | StageEnum::StorageHistory => {
tx.clear::<tables::AccountHistory>()?;
tx.clear::<tables::StorageHistory>()?;
tx.put::<tables::SyncStage>(
Expand Down

0 comments on commit 72b211e

Please sign in to comment.