feat(storage, tree): respect Transaction Lookup pruning in the blockchain tree (#4410)

This commit is contained in:
Alexey Shekhirin
2023-09-01 13:51:34 +01:00
committed by GitHub
parent 39a6fa1b57
commit e66e3e3556
29 changed files with 118 additions and 49 deletions

View File

@ -85,7 +85,7 @@ revm-primitives = { workspace = true, features = ["arbitrary"] }
arbitrary = { workspace = true, features = ["derive"] }
proptest.workspace = true
proptest-derive = "0.3"
assert_matches = "1.5.0"
assert_matches.workspace = true
toml = "0.7.4"
# necessary so we don't hit a "undeclared 'std'":

View File

@ -49,6 +49,11 @@ impl PruneMode {
PruneMode::Before(n) => *n > block,
}
}
/// Returns true if the prune mode is [`PruneMode::Full`].
pub fn is_full(&self) -> bool {
matches!(self, Self::Full)
}
}
#[cfg(test)]