Skip to content

Commit

Permalink
Improve comments
Browse files Browse the repository at this point in the history
Signed-off-by: HenrikJannsen <[email protected]>
  • Loading branch information
HenrikJannsen committed Jun 28, 2024
1 parent 80bdbb7 commit a79de68
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ public void resyncDaoStateFromGenesis(Runnable resultHandler) {
log.error(t.toString());
}

// Reset to empty DaoState and DaoStateHashChain
store.setDaoStateAsProto(DaoState.getBsqStateCloneExcludingBlocks(new DaoState()));
store.setDaoStateHashChain(new LinkedList<>());
persistenceManager.persistNow(resultHandler);
Expand All @@ -225,7 +226,7 @@ public void removeAndBackupAllDaoData() throws IOException {
}

private void removeAndBackupDaoConsensusFiles(boolean removeDaoStateStore) throws IOException {
// We delete all DAO related data. Some will be rebuilt from resources.
// We delete all DAO related data. At re-start they will get rebuilt from resources.
if (removeDaoStateStore) {
removeAndBackupFile("DaoStateStore");
}
Expand Down

0 comments on commit a79de68

Please sign in to comment.