You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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))
199
+
logger.error('Major problem! When trying to decode one of your private keys, the checksum '
200
+
'failed. Here is the PRIVATE key: %s\n'%str(WIFstring))
199
201
return""
200
202
else:
201
203
#checksum passed
202
204
ifprivkey[0] =='\x80':
203
205
returnprivkey[1:]
204
206
else:
205
-
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))
207
+
logger.error('Major problem! When trying to decode one of your private keys, the '
208
+
'checksum passed but the key doesn\'t begin with hex 80. Here is the '
UISignalQueue.put(('updateStatusBar','Done saving the knownNodes list of peers to disk.'))
278
276
279
277
broadcastToSendDataQueues((0, 'shutdown', 'all'))
280
278
281
-
printLock.acquire()
282
-
print'Flushing inventory in memory out to disk...'
283
-
printLock.release()
284
-
UISignalQueue.put(('updateStatusBar','Flushing inventory in memory out to disk. This should normally only take a second...'))
279
+
logger.info('Flushing inventory in memory out to disk...')
280
+
UISignalQueue.put(('updateStatusBar','Flushing inventory in memory out to disk. '
281
+
'This should normally only take a second...'))
285
282
flushInventory()
286
283
287
-
#This one last useless query will guarantee that the previous flush committed before we close the program.
284
+
# This one last useless query will guarantee that the previous flush committed before we close
285
+
# the program.
288
286
sqlLock.acquire()
289
287
sqlSubmitQueue.put('SELECT address FROM subscriptions')
290
288
sqlSubmitQueue.put('')
291
289
sqlReturnQueue.get()
292
290
sqlSubmitQueue.put('exit')
293
291
sqlLock.release()
294
-
printLock.acquire()
295
-
print'Finished flushing inventory.'
296
-
printLock.release()
292
+
logger.info('Finished flushing inventory.')
297
293
298
-
time.sleep(.25) #Wait long enough to guarantee that any running proof of work worker threads will check the shutdown variable and exit. If the main thread closes before they do then they won't stop.
294
+
# Wait long enough to guarantee that any running proof of work worker threads will check the
295
+
# shutdown variable and exit. If the main thread closes before they do then they won't stop.
#When you want to command a sendDataThread to do something, like shutdown or send some data, this function puts your data into the queues for each of the sendDataThreads. The sendDataThreads are responsible for putting their queue into (and out of) the sendDataQueues list.
302
+
# When you want to command a sendDataThread to do something, like shutdown or send some data, this
303
+
# function puts your data into the queues for each of the sendDataThreads. The sendDataThreads are
304
+
# responsible for putting their queue into (and out of) the sendDataQueues list.
0 commit comments