mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 22:27:56 +00:00
Fixed pruning docs (#11519)
This commit is contained in:
@@ -239,7 +239,7 @@ impl PruningMode {
|
||||
}
|
||||
}
|
||||
|
||||
/// Is this an archive (either ArchiveAll or ArchiveCanonical) pruning mode?
|
||||
/// Returns the pruning mode
|
||||
pub fn id(&self) -> &[u8] {
|
||||
match self {
|
||||
PruningMode::ArchiveAll => PRUNING_MODE_ARCHIVE,
|
||||
@@ -247,6 +247,7 @@ impl PruningMode {
|
||||
PruningMode::Constrained(_) => PRUNING_MODE_CONSTRAINED,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn from_id(id: &[u8]) -> Option<Self> {
|
||||
match id {
|
||||
PRUNING_MODE_ARCHIVE => Some(Self::ArchiveAll),
|
||||
|
||||
Reference in New Issue
Block a user