[rpc-tests] Change solve() to use rehash

Github-Pull: #7468
Rebased-From: 7689041c03
This commit is contained in:
mrbandrews
2016-02-04 14:36:11 -05:00
committed by Wladimir J. van der Laan
parent 9cb31e664a
commit 947c4ff724

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