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

chimp1984 notifications at github.com
Fri Dec 4 16:50:10 CET 2020


@chimp1984 commented on this pull request.



>              }
+
+            GetBlocksResponse getBlocksResponse = (GetBlocksResponse) networkEnvelope;
+            if (getBlocksResponse.getRequestNonce() != nonce) {
+                log.warn("Nonce not matching. That can happen rarely if we get a response after a canceled " +
+                                "handshake (timeout causes connection close but peer might have sent a msg before " +
+                                "connection was closed).\n\t" +
+                                "We drop that message. nonce={} / requestNonce={}",
+                        nonce, getBlocksResponse.getRequestNonce());
+                return;
+            }
+
+            cleanup();

cleanup calls stopTimeoutTimer. But will consolidate cancel/stop/cleanup

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


More information about the bisq-github mailing list