print more data when magic bytes are wrong to investigate what might be causing the issue (incoming Bitcoin connections?)
This commit is contained in:
parent
7791283f71
commit
6be87e63a4
|
@ -309,7 +309,7 @@ class receiveDataThread(QThread):
|
||||||
self.data = ""
|
self.data = ""
|
||||||
if verbose >= 2:
|
if verbose >= 2:
|
||||||
printLock.acquire()
|
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()
|
printLock.release()
|
||||||
elif len(self.data) < 20: #if so little of the data has arrived that we can't even unpack the payload length
|
elif len(self.data) < 20: #if so little of the data has arrived that we can't even unpack the payload length
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user