[bisq-network/bisq] Extract persistence of BSQ blocks out of DaoStateStore [5] (PR #5790)

Christoph Atteneder notifications at github.com
Mon Nov 8 13:04:52 CET 2021


@ripcurlx commented on this pull request.



>              });
         }).start();
     }
 
-    public void pruneStore() {
-        store.setDaoStateAsProto(null);
-        store.setDaoStateHashChain(null);
-        GcUtil.maybeReleaseMemory();
+    @Override
+    protected void readFromResources(String postFix, Runnable completeHandler) {
+        new Thread(() -> {
+            Thread.currentThread().setName("copyBsqBlocksFromResources");
+            bsqBlocksStorageService.copyFromResources(postFix);
+
+            // We read daoState and blocks ane keep them in fields in store and

...and keep them

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/5790#pullrequestreview-800031052
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20211108/cce76421/attachment.htm>


More information about the bisq-github mailing list