Merge #7468: [rpc-tests] Change solve() to use rehash

7689041 [rpc-tests] Change solve() to use rehash (mrbandrews)
This commit is contained in:
Wladimir J. van der Laan committed 2016-02-05 11:17:52 +01:00
commit cf63d5c710
1 file changed
+1 -1
+1 -1
View File
@@ -536,7 +536,7 @@ class CBlock(CBlockHeader):
return True
def solve(self):
self.calc_sha256()
self.rehash()
target = uint256_from_compact(self.nBits)
while self.sha256 > target:
self.nNonce += 1