mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
refactor(prune): segment trait, receipts impl (#4887)
This commit is contained in:
@ -174,7 +174,7 @@ struct Metrics {
|
||||
impl From<PrunerError> for EngineHookError {
|
||||
fn from(err: PrunerError) -> Self {
|
||||
match err {
|
||||
PrunerError::PrunePart(_) | PrunerError::InconsistentData(_) => {
|
||||
PrunerError::PruneSegment(_) | PrunerError::InconsistentData(_) => {
|
||||
EngineHookError::Internal(Box::new(err))
|
||||
}
|
||||
PrunerError::Interface(err) => err.into(),
|
||||
|
||||
@ -84,7 +84,7 @@ impl<DB: Database + 'static> SnapshotHook<DB> {
|
||||
|
||||
let targets = snapshotter.get_snapshot_targets(finalized_block_number)?;
|
||||
|
||||
// Check if the snapshotting of any parts has been requested.
|
||||
// Check if the snapshotting of any data has been requested.
|
||||
if targets.any() {
|
||||
let (tx, rx) = oneshot::channel();
|
||||
self.task_spawner.spawn_critical_blocking(
|
||||
|
||||
Reference in New Issue
Block a user