mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 01:11:10 +00:00
Pruning changes tries (#856)
* changes trie pruning * add comment * do not prune changes tries on archive nodes
This commit is contained in:
committed by
Gav Wood
parent
8bc5242c92
commit
9886d12c26
@@ -142,6 +142,15 @@ impl PruningMode {
|
||||
max_mem: None,
|
||||
})
|
||||
}
|
||||
|
||||
/// Is this an archive (either ArchiveAll or ArchiveCanonical) pruning mode?
|
||||
pub fn is_archive(&self) -> bool {
|
||||
match *self {
|
||||
PruningMode::ArchiveAll | PruningMode::ArchiveCanonical => true,
|
||||
PruningMode::Constrained(_) => false
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
impl Default for PruningMode {
|
||||
|
||||
Reference in New Issue
Block a user