Expand description

Helper types and functions for handling and dealing with snapshot hashes.

Structs

  • Used by SnapshotPackagerService and SnapshotGossipManager, this struct adds type safety to ensure a full snapshot hash is pushed to the right CRDS.
  • FullSnapshotHashes is used by SnapshotPackagerService to collect the snapshot hashes from full snapshots and then push those hashes to CRDS.
  • Used by SnapshotPackagerService and SnapshotGossipManager, this struct adds type safety to ensure an incremental snapshot hash is pushed to the right CRDS. base is the (full) snapshot this incremental snapshot (hash) is based on.
  • IncrementalSnapshotHashes is used by SnapshotPackagerService to collect the snapshot hashes from incremental snapshots and then push those hashes to CRDS. base is the (full) snapshot all the incremental snapshots (hashes) are based on.
  • At startup, when loading from snapshots, the starting snapshot hashes need to be passed to SnapshotPackagerService, which is in charge of pushing the hashes to CRDS. This struct wraps up those values make it easier to pass from bank_forks_utils, through validator, to SnapshotPackagerService.