Browse Source

Merge #7468: [rpc-tests] Change solve() to use rehash

7689041 [rpc-tests] Change solve() to use rehash (mrbandrews)
0.13
Wladimir J. van der Laan 9 years ago
parent
commit
cf63d5c710
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      qa/rpc-tests/test_framework/mininode.py

2
qa/rpc-tests/test_framework/mininode.py

@ -536,7 +536,7 @@ class CBlock(CBlockHeader): @@ -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

Loading…
Cancel
Save