@ -314,7 +314,7 @@ class receiveDataThread(QThread):
self.data=""
else:
self.payloadLength,=unpack('>L',self.data[16:20])
iflen(self.data)>=self.payloadLength:#check if the whole message has arrived yet. If it has,...
iflen(self.data)>=self.payloadLength+24:#check if the whole message has arrived yet. If it has,...
ifself.data[20:24]==hashlib.sha512(self.data[24:self.payloadLength+24]).digest()[0:4]:#test the checksum in the message. If it is correct...
#print 'message checksum is correct'
#The time we've last seen this node is obviously right now since we just received valid data from it. So update the knownNodes list so that other peers can be made aware of its existance.
@ -2071,6 +2071,7 @@ def reloadMyAddressHashes():
print'reloading keys from keys.dat file'
printLock.release()
myRSAAddressHashes.clear()
myECAddressHashes.clear()
#myPrivateKeys.clear()
configSections=config.sections()
foraddressInKeysFileinconfigSections:
@ -2283,6 +2284,8 @@ class singleCleaner(QThread):
#self.emit(SIGNAL("updateSentItemStatusByAckdata(PyQt_PyObject,PyQt_PyObject)"),ackdata,'Message sent again because the acknowledgement was never received. ' + strftime(config.get('bitmessagesettings', 'timeformat'),localtime(int(time.time()))))
workerQueue.put(('sendmessage',toaddress))
sqlLock.release()
#Clear the status bar in case a message has been sitting there for a while.
self.emit(SIGNAL("updateStatusBar(PyQt_PyObject)"),'Broacasting the public key request. The recipient''s software must be on. This program will auto-retry if they are offline.')
self.emit(SIGNAL("updateStatusBar(PyQt_PyObject)"),'Broacasting the public key request. This program will auto-retry if they are offline.')
self.emit(SIGNAL("updateSentItemStatusByHash(PyQt_PyObject,PyQt_PyObject)"),ripe,'Sending public key request. Waiting for reply. Requested at '+strftime(config.get('bitmessagesettings','timeformat'),localtime(int(time.time()))))
print'Hash:',hash.encode('hex'),'\tHave correct nonce:',havecorrectnonce,'\tTime first broadcast:',strftime('%a, %d%b %Y %I:%M %p',localtime(time)),'\tUsed by me personally:',usedpersonally,'\tFull pubkey message:',transmitdata.encode('hex')
defreadInventory():
print'Printing everything in inventory table:'
item='''select hash, objecttype, streamnumber, payload, receivedtime from inventory'''
raiseException("Couldn't load the OpenSSL library. You must install it. Error message:"+err)
sys.stderr.write('(On Linux) Couldn\'t find and load the OpenSSL library. You must install it. If you believe that you already have it installed, this exception information might be of use:\n')
fromctypes.utilimportfind_library
OpenSSL=_OpenSSL(find_library('ssl'))
else:
raiseException("Couldn't load the OpenSSL library. You must install it.")
raiseException("Couldn't find and load the OpenSSL library. You must install it.")