Improve comments

Signed-off-by: HenrikJannsen <boilingfrog@gmx.com>
This commit is contained in:
HenrikJannsen 2024-06-28 20:12:28 +07:00
parent 80bdbb72fe
commit a79de681f6
No known key found for this signature in database
GPG Key ID: 02AA2BAE387C8307

View File

@ -213,6 +213,7 @@ public class DaoStateStorageService extends StoreService<DaoStateStore> {
log.error(t.toString());
}
// Reset to empty DaoState and DaoStateHashChain
store.setDaoStateAsProto(DaoState.getBsqStateCloneExcludingBlocks(new DaoState()));
store.setDaoStateHashChain(new LinkedList<>());
persistenceManager.persistNow(resultHandler);
@ -225,7 +226,7 @@ public class DaoStateStorageService extends StoreService<DaoStateStore> {
}
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");
}