mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 12:22:39 -03:00
[rpc-tests] Change solve() to use rehash
This commit is contained in:
parent
152a8216cc
commit
7689041c03
1 changed files with 1 additions and 1 deletions
|
@ -536,7 +536,7 @@ class CBlock(CBlockHeader):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def solve(self):
|
def solve(self):
|
||||||
self.calc_sha256()
|
self.rehash()
|
||||||
target = uint256_from_compact(self.nBits)
|
target = uint256_from_compact(self.nBits)
|
||||||
while self.sha256 > target:
|
while self.sha256 > target:
|
||||||
self.nNonce += 1
|
self.nNonce += 1
|
||||||
|
|
Loading…
Reference in a new issue