Merge pull request #36 from Atheros1/master
simple change to maintain backwards compatability
This commit is contained in:
commit
f05d2bfb01
|
@ -1445,7 +1445,7 @@ class receiveDataThread(QThread):
|
||||||
headerData = headerData + pack('>L',len(payload)) #payload length. Note that we add an extra 8 for the nonce.
|
headerData = headerData + pack('>L',len(payload)) #payload length. Note that we add an extra 8 for the nonce.
|
||||||
headerData = headerData + hashlib.sha512(payload).digest()[:4]
|
headerData = headerData + hashlib.sha512(payload).digest()[:4]
|
||||||
self.sock.send(headerData + payload)
|
self.sock.send(headerData + payload)
|
||||||
elif objectType == 'getpubkey':
|
elif objectType == 'getpubkey' or objectType == 'pubkeyrequest':
|
||||||
print 'sending getpubkey'
|
print 'sending getpubkey'
|
||||||
headerData = '\xe9\xbe\xb4\xd9' #magic bits, slighly different from Bitcoin's magic bits.
|
headerData = '\xe9\xbe\xb4\xd9' #magic bits, slighly different from Bitcoin's magic bits.
|
||||||
headerData = headerData + 'getpubkey\x00\x00\x00' #version command
|
headerData = headerData + 'getpubkey\x00\x00\x00' #version command
|
||||||
|
|
Loading…
Reference in New Issue
Block a user