mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-30 01:28:21 -05:00
feat: reth drop-stage merkle (#1941)
This commit is contained in:
committed by
GitHub
parent
d580b5a185
commit
1ce021f250
@@ -172,6 +172,7 @@ impl Command {
|
||||
BlockTransitionIndex,
|
||||
TxTransitionIndex,
|
||||
SyncStage,
|
||||
SyncStageProgress,
|
||||
Transactions
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -72,6 +72,18 @@ impl Command {
|
||||
Ok::<_, eyre::Error>(())
|
||||
})??;
|
||||
}
|
||||
StageEnum::Merkle => {
|
||||
tool.db.update(|tx| {
|
||||
tx.clear::<tables::AccountsTrie>()?;
|
||||
tx.clear::<tables::StoragesTrie>()?;
|
||||
tx.put::<tables::SyncStageProgress>(
|
||||
// TODO: Extract to constant in `TrieLoader` in trie/mod.rs
|
||||
"TrieLoader".to_string(),
|
||||
Vec::new(),
|
||||
)?;
|
||||
Ok::<_, eyre::Error>(())
|
||||
})??;
|
||||
}
|
||||
_ => {
|
||||
info!("Nothing to do for stage {:?}", self.stage);
|
||||
}
|
||||
|
||||
@@ -29,4 +29,5 @@ enum StageEnum {
|
||||
Bodies,
|
||||
Senders,
|
||||
Execution,
|
||||
Merkle,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user