[rpc-tests] Change solve() to use rehash
Github-Pull: #7468
Rebased-From: 7689041c03
This commit is contained in:
committed by
Wladimir J. van der Laan
parent
9cb31e664a
commit
947c4ff724
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user