skippydb 0.2.2

A high-performance verifiable key-value store with SHA256 Merkle trees and optional CUDA GPU acceleration, designed for blockchain state storage.
1
2
3
4
5
6
7
8
9
10
11
12
use std::sync::Arc;

use crate::{entryfile::EntryCache, utils::changeset::ChangeSet};

pub trait Task: Send + Sync {
    fn get_change_sets(&self) -> Arc<Vec<ChangeSet>>;
}

pub trait TaskHub: Send + Sync {
    fn check_begin_end(&self, task_id: i64) -> (Option<Arc<EntryCache>>, bool);
    fn get_change_sets(&self, task_id: i64) -> Arc<Vec<ChangeSet>>;
}