Skip to content

Commit

Permalink
save the 0 hash as dag state when resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
jackzhhuang committed Oct 9, 2024
1 parent df11f85 commit 9b586b0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sync/src/block_connector/write_block_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,12 @@ where
tips: vec![new_head_block.header().pruning_point()],
},
)?;
self.main.dag().save_dag_state(
HashValue::zero(),
DagState {
tips: vec![new_head_block.header().pruning_point()],
},
)?;
} else {
self.main.dag().save_dag_state(
new_head_block.header().pruning_point(),
Expand Down

0 comments on commit 9b586b0

Please sign in to comment.