print more data when magic bytes are wrong to investigate what might be causing the issue (incoming Bitcoin connections?)

This commit is contained in:
Jonathan Warren 2013-02-04 17:13:10 -05:00
parent 7791283f71
commit 6be87e63a4
1 changed files with 1 additions and 1 deletions

View File

@ -309,7 +309,7 @@ class receiveDataThread(QThread): = ""
if verbose >= 2:
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([0:40]))
elif len( < 20: #if so little of the data has arrived that we can't even unpack the payload length