Skip to content

Commit

Permalink
add sync log
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzhhuang committed Oct 17, 2024
1 parent ea56f4a commit f5287f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 1 addition & 2 deletions kube/manifest/starcoin-halley.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
starcoin/node-pool: seed-pool
containers:
- name: starcoin
image: starcoin/starcoin:pruning-point
image: starcoin/starcoin:slow-sync
imagePullPolicy: Always
command:
- bash
Expand All @@ -42,7 +42,6 @@ spec:
echo "Node start fail, try to remove config and data.";
rm /sc-data/halley/config.toml;
rm /sc-data/halley/genesis_config.json;
rm -rf /sc-data/halley/ &>/dev/null;
fi;
ports:
- containerPort: 9840
Expand Down
9 changes: 7 additions & 2 deletions sync/src/tasks/block_sync_task.rs
Original file line number Diff line number Diff line change
Expand Up @@ -613,8 +613,13 @@ where
// if it is not, we must pull the dag parent blocks from the peer.
info!("now sync dag block -- ensure_dag_parent_blocks_exist");
match self.ensure_dag_parent_blocks_exist(block.clone())? {
ParallelSign::NeedMoreBlocks => return Ok(CollectorState::Need),
ParallelSign::Continue => (),
ParallelSign::NeedMoreBlocks => {
info!("sync dag block -- ensure_dag_parent_blocks returns need");
return Ok(CollectorState::Need);
}
ParallelSign::Continue => {
info!("sync dag block -- ensure_dag_parent_blocks returns continue");
}
}
let state = self.check_enough();
if let anyhow::Result::Ok(CollectorState::Enough) = &state {
Expand Down

0 comments on commit f5287f6

Please sign in to comment.