diff options
author | Riccardo Spagni <ric@spagni.net> | 2019-04-01 17:19:10 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2019-04-01 17:19:10 +0200 |
commit | e55b3f9dda39a5fe6a7fff86a50125cec15596a0 (patch) | |
tree | aaf0dcfd82ea9fda8b428a788d6b732c4ee43d90 /tests/difficulty/wide_difficulty.py | |
parent | Merge pull request #5359 (diff) | |
parent | Make difficulty 128 bit instead of 64 bit (diff) | |
download | monero-e55b3f9dda39a5fe6a7fff86a50125cec15596a0.tar.xz |
Merge pull request #5239
91f4c7f4 Make difficulty 128 bit instead of 64 bit (moneromooo-monero)
Diffstat (limited to 'tests/difficulty/wide_difficulty.py')
-rwxr-xr-x | tests/difficulty/wide_difficulty.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/difficulty/wide_difficulty.py b/tests/difficulty/wide_difficulty.py new file mode 100755 index 000000000..41a2a632d --- /dev/null +++ b/tests/difficulty/wide_difficulty.py @@ -0,0 +1,22 @@ +#!/usr/bin/env python + +from __future__ import print_function +import sys +import subprocess + +python = sys.argv[1] +py = sys.argv[2] +c = sys.argv[3] +data = sys.argv[4] + +first = python + " " + py + " > " + data +second = [c, '--wide', data] + +try: + print('running: ', first) + subprocess.check_call(first, shell=True) + print('running: ', second) + subprocess.check_call(second) +except: + sys.exit(1) + |