Skip to content

Commit

Permalink
[rpc-tests] Change solve() to use rehash
Browse files Browse the repository at this point in the history
Github-Pull: #7468
Rebased-From: 7689041
  • Loading branch information
mrbandrews authored and laanwj committed Feb 10, 2016
1 parent 9cb31e6 commit 947c4ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qa/rpc-tests/test_framework/mininode.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ def is_valid(self):
return True

def solve(self):
self.calc_sha256()
self.rehash()
target = uint256_from_compact(self.nBits)
while self.sha256 > target:
self.nNonce += 1
Expand Down

0 comments on commit 947c4ff

Please sign in to comment.