mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat(storage, tree): respect Transaction Lookup pruning in the blockchain tree (#4410)
This commit is contained in:
@ -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'":
|
||||
|
||||
@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user