[bisq-network/bisq] Improve handling of failed trades and offers (#3566)
chimp1984
notifications at github.com
Wed Nov 6 15:26:18 UTC 2019
chimp1984 commented on this pull request.
> @@ -221,6 +225,20 @@ protected void onSetupCompleted() {
peerGroup.addBlocksDownloadedEventListener((peer, block, filteredBlock, blocksLeft) -> {
blocksDownloadedFromPeer.set(peer);
});
+
+ // Need to be Threading.SAME_THREAD executor otherwise BitcoinJ will skip that listener
+ peerGroup.addPreMessageReceivedEventListener(Threading.SAME_THREAD, (peer, message) -> {
+ if (message instanceof RejectMessage) {
+ UserThread.execute(() -> {
+ RejectMessage rejectMessage = (RejectMessage) message;
+ String msg = rejectMessage.toString();
+ log.error(msg);
Ok. I will change it.
--
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/3566#discussion_r343157935
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20191106/55378b9b/attachment.html>
More information about the bisq-github
mailing list