mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-01 08:51:08 +03:00
Chain init reset sync head (#1724)
* fix: binary auto release feature broken (#1714) * fix a mistake on script * reset_sync_head on setup_head, no need for reset_head
This commit is contained in:
parent
d3589d1bf5
commit
df0dc91891
2 changed files with 3 additions and 3 deletions
|
@ -67,7 +67,7 @@ script:
|
|||
fi;
|
||||
|
||||
before_deploy:
|
||||
- if [[ "TEST_SUITE" == "pool-p2p" ]]; then
|
||||
- if [[ "$TEST_SUITE" == "pool-p2p" ]]; then
|
||||
cargo clean && cargo build --release && ./.auto-release.sh;
|
||||
fi
|
||||
|
||||
|
|
|
@ -1056,8 +1056,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(())
|
||||
|
|
Loading…
Reference in a new issue