From a79de681f63464f8302ff524a70734d7db3d6a9e Mon Sep 17 00:00:00 2001 From: HenrikJannsen Date: Fri, 28 Jun 2024 20:12:28 +0700 Subject: [PATCH] Improve comments Signed-off-by: HenrikJannsen --- .../bisq/core/dao/state/storage/DaoStateStorageService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/bisq/core/dao/state/storage/DaoStateStorageService.java b/core/src/main/java/bisq/core/dao/state/storage/DaoStateStorageService.java index 08a05bb7ae1..863e53ba1bf 100644 --- a/core/src/main/java/bisq/core/dao/state/storage/DaoStateStorageService.java +++ b/core/src/main/java/bisq/core/dao/state/storage/DaoStateStorageService.java @@ -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); @@ -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"); }