feat(reth): remove History variant in StageEnum (#4365)

This commit is contained in:
Thomas Coratger
2023-08-28 11:00:23 +02:00
committed by GitHub
parent b2a0548e47
commit 72b211ed4f
2 changed files with 1 additions and 3 deletions

View File

@ -13,8 +13,6 @@ pub enum StageEnum {
Hashing,
Merkle,
TxLookup,
// TODO: Combine or remove `History` variant.
History,
AccountHistory,
StorageHistory,
TotalDifficulty,

View File

@ -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>(