[bisq-network/bisq] Improve getBlocks request handling (#4851)

chimp1984 notifications at github.com
Fri Dec 4 16:43:41 CET 2020


@chimp1984 commented on this pull request.



> +        } else {
+            if (blockDownloadListener == null) {
+                blockDownloadListener = (observable, oldValue, newValue) -> {
+                    if ((double) newValue == 1) {
+                        setupWalletBestBlockListener();
+                        UserThread.execute(() -> walletsSetup.downloadPercentageProperty().removeListener(blockDownloadListener));
+                    }
+                };
+                walletsSetup.downloadPercentageProperty().addListener(blockDownloadListener);
+            }
+        }

I will make a commit with the suggestion. Have better control if I do it in the IDE...

-- 
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/4851#discussion_r536190856
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20201204/d6092355/attachment.htm>


More information about the bisq-github mailing list