Implement block list-errors and block info

This commit is contained in:
Alex Auvolat
2022-12-13 14:23:45 +01:00
parent 9d82196945
commit 687660b27f
8 changed files with 240 additions and 28 deletions
+7
View File
@@ -169,4 +169,11 @@ impl RcEntry {
pub(crate) fn is_needed(&self) -> bool {
!self.is_deletable()
}
pub(crate) fn as_u64(&self) -> u64 {
match self {
RcEntry::Present { count } => *count,
_ => 0,
}
}
}