Skip to content

Commit

Permalink
Allow threshold change in Block.solve_work
Browse files Browse the repository at this point in the history
Providing 'threshold' parameter in 'solve_work'
will now change the Block instance's work threshold.
  • Loading branch information
Matoking committed Apr 30, 2019
1 parent 71e3bf9 commit 7c690db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/nanolib/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,8 @@ def solve_work(self, threshold=None, timeout=None):
"""
if not threshold:
threshold = self.threshold
else:
self.threshold = validate_threshold(threshold)

if self.work:
try:
Expand Down

0 comments on commit 7c690db

Please sign in to comment.