diff options
author | mrbandrews <bandrewsny@gmail.com> | 2016-02-04 14:36:11 -0500 |
---|---|---|
committer | mrbandrews <bandrewsny@gmail.com> | 2016-02-04 14:36:11 -0500 |
commit | 7689041c03278a09c88a2bb78cd00217f6d4b1de (patch) | |
tree | 3d42cc64fae2ebef2a2bb8307e3938bfab7632c0 /qa/rpc-tests | |
parent | 152a8216cc7b170eed26ee4c3a65dbe592e55f05 (diff) |
[rpc-tests] Change solve() to use rehash
Diffstat (limited to 'qa/rpc-tests')
-rwxr-xr-x | qa/rpc-tests/test_framework/mininode.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/rpc-tests/test_framework/mininode.py b/qa/rpc-tests/test_framework/mininode.py index ca65fb6e79..2135570b8c 100755 --- a/qa/rpc-tests/test_framework/mininode.py +++ b/qa/rpc-tests/test_framework/mininode.py @@ -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 |