Browse Source

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

0.13
mrbandrews 9 years ago
parent
commit
7689041c03
  1. 2
      qa/rpc-tests/test_framework/mininode.py

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

@ -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…
Cancel
Save