@ -325,7 +325,7 @@ class objectProcessor(threading.Thread):
'ackreceived',
int(time.time()),
data[-32:])
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(data[-32:],tr.translateText("MainWindow",'Acknowledgement of the message received %1').arg(l10n.formatTimestamp()))))
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(data[-32:],tr._translate("MainWindow",'Acknowledgement of the message received %1').arg(l10n.formatTimestamp()))))
return
else:
logger.info('This was NOT an acknowledgement bound for me.')
@ -90,7 +90,7 @@ class singleCleaner(threading.Thread, StoppableThread):
exceptExceptionaserr:
if"Errno 28"instr(err):
logger.fatal('(while receiveDataThread shared.needToWriteKnownNodesToDisk) Alert: Your disk or data storage volume is full. ')
shared.UISignalQueue.put(('alert',(tr.translateText("MainWindow","Disk full"),tr.translateText("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
shared.UISignalQueue.put(('alert',(tr._translate("MainWindow","Disk full"),tr._translate("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
logger.info('(For broadcast message) Found proof of work '+str(trialValue)+' Nonce: '+str(nonce))
@ -483,7 +483,7 @@ class singleWorker(threading.Thread, StoppableThread):
shared.broadcastToSendDataQueues((
streamNumber,'advertiseobject',inventoryHash))
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr.translateText("MainWindow","Broadcast sent on %1").arg(l10n.formatTimestamp()))))
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr._translate("MainWindow","Broadcast sent on %1").arg(l10n.formatTimestamp()))))
# Update the status of the message in the 'sent' table to have
# a 'broadcastsent' status
@ -555,7 +555,7 @@ class singleWorker(threading.Thread, StoppableThread):
ackdata,tr.translateText("MainWindow","Looking up the receiver\'s public key"))))
ackdata,tr._translate("MainWindow","Looking up the receiver\'s public key"))))
logger.info('Sending a message.')
logger.debug('First 150 characters of message: '+repr(message[:150]))
@ -642,7 +642,7 @@ class singleWorker(threading.Thread, StoppableThread):
ifshared.isBitSetWithinBitfield(behaviorBitfield,30):# if receiver is a mobile device who expects that their address RIPE is included unencrypted on the front of the message..
ifnotshared.safeConfigGetBoolean('bitmessagesettings','willinglysendtomobile'):# if we are Not willing to include the receiver's RIPE hash on the message..
logger.info('The receiver is a mobile user but the sender (you) has not selected that you are willing to send to mobiles. Aborting send.')
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr.translateText("MainWindow",'Problem: Destination is a mobile device who requests that the destination be included in the message but this is disallowed in your settings. %1').arg(l10n.formatTimestamp()))))
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr._translate("MainWindow",'Problem: Destination is a mobile device who requests that the destination be included in the message but this is disallowed in your settings. %1').arg(l10n.formatTimestamp()))))
# if the human changes their setting and then sends another message or restarts their client, this one will send at that time.
continue
readPosition+=4# to bypass the bitfield of behaviors
@ -657,7 +657,7 @@ class singleWorker(threading.Thread, StoppableThread):
logger.debug('Using averageProofOfWorkNonceTrialsPerByte: %s and payloadLengthExtraBytes: %s.'%(requiredAverageProofOfWorkNonceTrialsPerByte,requiredPayloadLengthExtraBytes))
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr.translateText("MainWindow","Doing work necessary to send message.\nReceiver\'s required difficulty: %1 and %2").arg(str(float(
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr._translate("MainWindow","Doing work necessary to send message.\nReceiver\'s required difficulty: %1 and %2").arg(str(float(
@ -679,7 +679,7 @@ class singleWorker(threading.Thread, StoppableThread):
sqlExecute(
'''UPDATE sent SET status='toodifficult' WHERE ackdata=? ''',
ackdata)
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr.translateText("MainWindow","Problem: The work demanded by the recipient (%1 and %2) is more difficult than you are willing to do. %3").arg(str(float(requiredAverageProofOfWorkNonceTrialsPerByte)/shared.networkDefaultProofOfWorkNonceTrialsPerByte)).arg(str(float(
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr._translate("MainWindow","Problem: The work demanded by the recipient (%1 and %2) is more difficult than you are willing to do. %3").arg(str(float(requiredAverageProofOfWorkNonceTrialsPerByte)/shared.networkDefaultProofOfWorkNonceTrialsPerByte)).arg(str(float(
else:# if we are sending a message to ourselves or a chan..
@ -691,7 +691,7 @@ class singleWorker(threading.Thread, StoppableThread):
privEncryptionKeyBase58=shared.config.get(
toaddress,'privencryptionkey')
exceptExceptionaserr:
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr.translateText("MainWindow",'Problem: You are trying to send a message to yourself or a chan but your encryption key could not be found in the keys.dat file. Could not encrypt message. %1').arg(l10n.formatTimestamp()))))
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr._translate("MainWindow",'Problem: You are trying to send a message to yourself or a chan but your encryption key could not be found in the keys.dat file. Could not encrypt message. %1').arg(l10n.formatTimestamp()))))
logger.error('Error within sendMsg. Could not read the keys from the keys.dat file for our own address. %s\n'%err)
sqlExecute('''UPDATE sent SET status='badkey' WHERE ackdata=?''',ackdata)
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr.translateText("MainWindow",'Problem: The recipient\'s encryption key is no good. Could not encrypt message. %1').arg(l10n.formatTimestamp()))))
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr._translate("MainWindow",'Problem: The recipient\'s encryption key is no good. Could not encrypt message. %1').arg(l10n.formatTimestamp()))))
continue
encryptedPayload=pack('>Q',embeddedTime)
@ -810,10 +810,10 @@ class singleWorker(threading.Thread, StoppableThread):
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr.translateText("MainWindow","Message sent. Sent at %1").arg(l10n.formatTimestamp()))))
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr._translate("MainWindow","Message sent. Sent at %1").arg(l10n.formatTimestamp()))))
else:
# not sending to a chan or one of my addresses
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr.translateText("MainWindow","Message sent. Waiting for acknowledgement. Sent on %1").arg(l10n.formatTimestamp()))))
shared.UISignalQueue.put(('updateSentItemStatusByAckdata',(ackdata,tr._translate("MainWindow","Message sent. Waiting for acknowledgement. Sent on %1").arg(l10n.formatTimestamp()))))
logger.info('Broadcasting inv for my msg(within sendmsg function):'+hexlify(inventoryHash))
shared.broadcastToSendDataQueues((
toStreamNumber,'advertiseobject',inventoryHash))
@ -906,7 +906,7 @@ class singleWorker(threading.Thread, StoppableThread):
statusbar='Doing the computations necessary to request the recipient\'s public key.'
@ -934,8 +934,8 @@ class singleWorker(threading.Thread, StoppableThread):
toAddress)
shared.UISignalQueue.put((
'updateStatusBar',tr.translateText("MainWindow",'Broadcasting the public key request. This program will auto-retry if they are offline.')))
shared.UISignalQueue.put(('updateSentItemStatusByToAddress',(toAddress,tr.translateText("MainWindow",'Sending public key request. Waiting for reply. Requested at %1').arg(l10n.formatTimestamp()))))
'updateStatusBar',tr._translate("MainWindow",'Broadcasting the public key request. This program will auto-retry if they are offline.')))
shared.UISignalQueue.put(('updateSentItemStatusByToAddress',(toAddress,tr._translate("MainWindow",'Sending public key request. Waiting for reply. Requested at %1').arg(l10n.formatTimestamp()))))
@ -442,7 +442,7 @@ class sqlThread(threading.Thread):
exceptExceptionaserr:
ifstr(err)=='database or disk is full':
logger.fatal('(While null value test) Alert: Your disk or data storage volume is full. sqlThread will now exit.')
shared.UISignalQueue.put(('alert',(tr.translateText("MainWindow","Disk full"),tr.translateText("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
shared.UISignalQueue.put(('alert',(tr._translate("MainWindow","Disk full"),tr._translate("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
ifshared.daemon:
os._exit(0)
else:
@ -465,7 +465,7 @@ class sqlThread(threading.Thread):
exceptExceptionaserr:
ifstr(err)=='database or disk is full':
logger.fatal('(While VACUUM) Alert: Your disk or data storage volume is full. sqlThread will now exit.')
shared.UISignalQueue.put(('alert',(tr.translateText("MainWindow","Disk full"),tr.translateText("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
shared.UISignalQueue.put(('alert',(tr._translate("MainWindow","Disk full"),tr._translate("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
ifshared.daemon:
os._exit(0)
else:
@ -482,7 +482,7 @@ class sqlThread(threading.Thread):
exceptExceptionaserr:
ifstr(err)=='database or disk is full':
logger.fatal('(While committing) Alert: Your disk or data storage volume is full. sqlThread will now exit.')
shared.UISignalQueue.put(('alert',(tr.translateText("MainWindow","Disk full"),tr.translateText("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
shared.UISignalQueue.put(('alert',(tr._translate("MainWindow","Disk full"),tr._translate("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
ifshared.daemon:
os._exit(0)
else:
@ -500,7 +500,7 @@ class sqlThread(threading.Thread):
exceptExceptionaserr:
ifstr(err)=='database or disk is full':
logger.fatal('(while movemessagstoprog) Alert: Your disk or data storage volume is full. sqlThread will now exit.')
shared.UISignalQueue.put(('alert',(tr.translateText("MainWindow","Disk full"),tr.translateText("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
shared.UISignalQueue.put(('alert',(tr._translate("MainWindow","Disk full"),tr._translate("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
ifshared.daemon:
os._exit(0)
else:
@ -519,7 +519,7 @@ class sqlThread(threading.Thread):
exceptExceptionaserr:
ifstr(err)=='database or disk is full':
logger.fatal('(while movemessagstoappdata) Alert: Your disk or data storage volume is full. sqlThread will now exit.')
shared.UISignalQueue.put(('alert',(tr.translateText("MainWindow","Disk full"),tr.translateText("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
shared.UISignalQueue.put(('alert',(tr._translate("MainWindow","Disk full"),tr._translate("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
ifshared.daemon:
os._exit(0)
else:
@ -539,7 +539,7 @@ class sqlThread(threading.Thread):
exceptExceptionaserr:
ifstr(err)=='database or disk is full':
logger.fatal('(while deleteandvacuume) Alert: Your disk or data storage volume is full. sqlThread will now exit.')
shared.UISignalQueue.put(('alert',(tr.translateText("MainWindow","Disk full"),tr.translateText("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
shared.UISignalQueue.put(('alert',(tr._translate("MainWindow","Disk full"),tr._translate("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
ifshared.daemon:
os._exit(0)
else:
@ -555,7 +555,7 @@ class sqlThread(threading.Thread):
exceptExceptionaserr:
ifstr(err)=='database or disk is full':
logger.fatal('(while cur.execute) Alert: Your disk or data storage volume is full. sqlThread will now exit.')
shared.UISignalQueue.put(('alert',(tr.translateText("MainWindow","Disk full"),tr.translateText("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
shared.UISignalQueue.put(('alert',(tr._translate("MainWindow","Disk full"),tr._translate("MainWindow",'Alert: Your disk or data storage volume is full. Bitmessage will now exit.'),True)))
UISignalQueue.put(('updateStatusBar',tr.translateText("MainWindow",'Your GPU(s) did not calculate correctly, disabling OpenCL. Please report to the developers.')))
UISignalQueue.put(('updateStatusBar',tr._translate("MainWindow",'Your GPU(s) did not calculate correctly, disabling OpenCL. Please report to the developers.')))
logger.error("Your GPUs (%s) did not calculate correctly, disabling OpenCL. Please report to the developers.",deviceNames)
openclpow.ctx=False
raiseException("GPU did not calculate correctly.")