@ -1876,7 +1878,14 @@ class MyForm(QtGui.QMainWindow):
shared.knownNodesLock.release()
os.remove(shared.appdata+'keys.dat')
os.remove(shared.appdata+'knownnodes.dat')
previousAppdataLocation=shared.appdata
shared.appdata=''
debug.restartLoggingInUpdatedAppdataLocation()
try:
os.remove(previousAppdataLocation+'debug.log')
os.remove(previousAppdataLocation+'debug.log.1')
except:
pass
ifshared.appdata==''andnotself.settingsDialogInstance.ui.checkBoxPortableMode.isChecked():# If we ARE using portable mode now but the user selected that we shouldn't...
shared.appdata=shared.lookupAppdataFolder()
@ -1896,6 +1905,12 @@ class MyForm(QtGui.QMainWindow):
sys.stderr.write('Major problem! When trying to decode one of your private keys, the checksum failed. Here is the PRIVATE key: %s\n'%str(WIFstring))
logger.error('Major problem! When trying to decode one of your private keys, the checksum '
'failed. Here is the PRIVATE key: %s\n'%str(WIFstring))
return""
else:
#checksum passed
ifprivkey[0]=='\x80':
returnprivkey[1:]
else:
sys.stderr.write('Major problem! When trying to decode one of your private keys, the checksum passed but the key doesn\'t begin with hex 80. Here is the PRIVATE key: %s\n'%str(WIFstring))
logger.error('Major problem! When trying to decode one of your private keys, the '
'checksum passed but the key doesn\'t begin with hex 80. Here is the '
privEncryptionKey=decodeWalletImportFormat(config.get(addressInKeysFile,'privencryptionkey')).encode('hex')#returns a simple 32 bytes of information encoded in 64 Hex characters, or null if there was an error
# Returns a simple 32 bytes of information encoded in 64 Hex characters,