mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-25 22:34:27 +00:00
Merge #7468: [rpc-tests] Change solve() to use rehash
7689041 [rpc-tests] Change solve() to use rehash (mrbandrews)
This commit is contained in:
commit
cf63d5c710
@ -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…
x
Reference in New Issue
Block a user