reset_sync_head on setup_head, no need for reset_head (#1725)

This commit is contained in:
Antioch Peverell
2018-10-11 13:13:03 +01:00
committed by GitHub
parent a9c514d774
commit 9adbaf55a1
+2 -2
View File
@@ -1058,8 +1058,8 @@ fn setup_head(
Err(e) => return Err(ErrorKind::StoreErr(e, "chain init load head".to_owned()))?,
};
// Initialize header_head and sync_head as necessary for chain init.
batch.reset_head()?;
// Reset sync_head to be consistent with current header_head.
batch.reset_sync_head()?;
batch.commit()?;
Ok(())