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

This commit is contained in:
mrbandrews 2016-02-04 14:36:11 -05:00
parent 152a8216cc
commit 7689041c03

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