Add version table fuzz

This commit is contained in:
Arthur Carcano
2026-04-27 16:59:13 +02:00
committed by Alex
parent 9a18259419
commit 6ddae5397c
3 changed files with 103 additions and 0 deletions
+3
View File
@@ -41,6 +41,7 @@ mod v08 {
}
#[derive(PartialEq, Eq, Clone, Copy, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
pub struct VersionBlockKey {
/// Number of the part
pub part_number: u64,
@@ -51,6 +52,7 @@ mod v08 {
/// Information about a single block
#[derive(PartialEq, Eq, Ord, PartialOrd, Clone, Copy, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
pub struct VersionBlock {
/// Blake2 sum of the block
pub hash: Hash,
@@ -91,6 +93,7 @@ pub(crate) mod v09 {
}
#[derive(PartialEq, Eq, Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
pub enum VersionBacklink {
Object {
/// Bucket in which the related object is stored