We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea5d2d5 commit 18e1e80Copy full SHA for 18e1e80
sync/src/snapshot/service.rs
@@ -68,6 +68,7 @@ impl ChainNotify for Service {
68
let db = self.client.database();
69
let path: PathBuf = [self.root_dir.clone(), format!("{:x}", header.hash())].iter().collect();
70
let root = header.state_root();
71
+ // FIXME: The db can be corrupted because the CodeChain doesn't wait child threads end on exit.
72
spawn(move || match Snapshot::try_new(path).map(|s| s.write_snapshot(db.as_ref(), &root)) {
73
Ok(_) => {}
74
Err(Error::FileError(ErrorKind::AlreadyExists)) => {}
0 commit comments