Update logging
This commit is contained in:
parent
77f811c455
commit
7369b63614
9 changed files with 68 additions and 58 deletions
|
@ -47,10 +47,10 @@ class POW:
|
|||
if iFound:
|
||||
endTime = math.floor(time.time())
|
||||
if self.reporting:
|
||||
logger.info('Found token ' + token)
|
||||
logger.info('took ' + str(endTime - startTime))
|
||||
logger.info('Found token ' + token, timestamp=True)
|
||||
logger.info('took ' + str(endTime - startTime), timestamp=True)
|
||||
self.result = token
|
||||
|
||||
|
||||
def __init__(self, difficulty, bitcoinNode):
|
||||
self.foundHash = False
|
||||
self.difficulty = difficulty
|
||||
|
@ -72,7 +72,7 @@ class POW:
|
|||
def shutdown(self):
|
||||
self.hashing = False
|
||||
self.puzzle = ''
|
||||
|
||||
|
||||
def changeDifficulty(self, newDiff):
|
||||
self.difficulty = newDiff
|
||||
|
||||
|
@ -83,4 +83,4 @@ class POW:
|
|||
except AttributeError:
|
||||
retVal = False
|
||||
self.result = False
|
||||
return retVal
|
||||
return retVal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue