mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 17:01:09 +03:00
reset_sync_head on setup_head, no need for reset_head (#1725)
This commit is contained in:
parent
a9c514d774
commit
9adbaf55a1
1 changed files with 2 additions and 2 deletions
|
@ -1058,8 +1058,8 @@ fn setup_head(
|
||||||
Err(e) => return Err(ErrorKind::StoreErr(e, "chain init load head".to_owned()))?,
|
Err(e) => return Err(ErrorKind::StoreErr(e, "chain init load head".to_owned()))?,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Initialize header_head and sync_head as necessary for chain init.
|
// Reset sync_head to be consistent with current header_head.
|
||||||
batch.reset_head()?;
|
batch.reset_sync_head()?;
|
||||||
batch.commit()?;
|
batch.commit()?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Reference in a new issue