From 6be87e63a4016905b60940d04083e4011b411d77 Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Mon, 4 Feb 2013 17:13:10 -0500 Subject: [PATCH] print more data when magic bytes are wrong to investigate what might be causing the issue (incoming Bitcoin connections?) --- bitmessagemain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitmessagemain.py b/bitmessagemain.py index cfadb972..3de1ed8b 100644 --- a/bitmessagemain.py +++ b/bitmessagemain.py @@ -309,7 +309,7 @@ class receiveDataThread(QThread): self.data = "" if verbose >= 2: printLock.acquire() - sys.stderr.write('The magic bytes were not correct.\n') + sys.stderr.write('The magic bytes were not correct. First 40 bytes of data: %s\n' % repr(self.data[0:40])) printLock.release() elif len(self.data) < 20: #if so little of the data has arrived that we can't even unpack the payload length pass