[bisq-network/bisq] Reduce initial request size (#4233)

Florian Reimair notifications at github.com
Fri May 22 07:51:05 UTC 2020


@freimair commented on this pull request.



> -     */
-    private String extractSpecialKey(String name, String postFix) {
-        return name.replace(postFix, "") // remove the postfix
-                .replace("_", "") // remove the spacings
-                .replace(getFileName(), ""); // remove the file name
+        // load our live data store
+        store = readStore(getFileName());
+
+        // create file list of files we should have by now
+        List<String> versions = new ArrayList<>();
+        versions.add(Version.VERSION);
+        versions.addAll(Version.history);
+
+        // go through the list one by one
+        versions.forEach(version -> {
+            String filename = getFileName() + "_" + version + postFix; // postFix has a preceding "_"

oh my. sorry. bug. fix is coming up.

-- 
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/4233#discussion_r429096139
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20200522/96444832/attachment.html>


More information about the bisq-github mailing list