Function vapcore_snapshot::chunk_state [−][src]
pub fn chunk_state<'a>(
db: &dyn HashDB<KeccakHasher, DBValue>,
root: &H256,
writer: &Mutex<dyn SnapshotWriter + 'a>,
progress: &'a RwLock<Progress>,
part: Option<usize>,
thread_idx: usize
) -> Result<Vec<H256>, Error>
Walk the given state database starting from the given root,
creating chunks and writing them out.
part
is a number between 0 and 15, which describe which part of
the tree should be chunked.
Returns a list of hashes of chunks created, or any error it may have encountered.