From 24dc8252a386a9528711c1c2d68988aa60ef6f1b Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Tue, 8 Nov 2022 09:29:05 -0500 Subject: [PATCH 1/2] Add scripts to research randomx difficulty problems --- src/testdragonx-cli | 13 +++++++++++++ src/testdragonxd | 17 +++++++++++++++++ src/testequihash-cli | 13 +++++++++++++ src/testequihashd | 18 ++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100755 src/testdragonx-cli create mode 100755 src/testdragonxd create mode 100755 src/testequihash-cli create mode 100755 src/testequihashd diff --git a/src/testdragonx-cli b/src/testdragonx-cli new file mode 100755 index 000000000..e1f94b2c7 --- /dev/null +++ b/src/testdragonx-cli @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +# Copyright 2016-2022 The Hush Developers +# Copyright 2022 The DragonX Developers +# Released under the GPLv3 + +# set working directory to the location of this script +# readlink -f does not always exist +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $DIR +DIR="$( cd "$( dirname "$( readlink "${BASH_SOURCE[0]}" )" )" && pwd )" +cd $DIR + +./hush-cli -ac_name=TESTDRAGONX $@ diff --git a/src/testdragonxd b/src/testdragonxd new file mode 100755 index 000000000..d769509d5 --- /dev/null +++ b/src/testdragonxd @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +# Copyright 2016-2022 The Hush Developers +# Copyright 2022 The DragonX Developers +# Released under the GPLv3 + +# set working directory to the location of this script +# readlink -f does not always exist +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $DIR +DIR="$( cd "$( dirname "$( readlink "${BASH_SOURCE[0]}" )" )" && pwd )" +cd $DIR + +BLOCKTIME=18 +SUPPLY=0 + +# Remember Remember the 5th November for freedom of speech is not free!! +./hush-smart-chain -ac_name=TESTDRAGONX -ac_algo=randomx -ac_halving=3500000 -ac_reward=300000000 -ac_blocktime=$BLOCKTIME -ac_private=1 -ac_supply=$SUPPLY -gen=1 -genproclimit=1 -debug=randomx $@ diff --git a/src/testequihash-cli b/src/testequihash-cli new file mode 100755 index 000000000..abe243979 --- /dev/null +++ b/src/testequihash-cli @@ -0,0 +1,13 @@ +#!/usr/bin/env bash +# Copyright 2016-2022 The Hush Developers +# Copyright 2022 The DragonX Developers +# Released under the GPLv3 + +# set working directory to the location of this script +# readlink -f does not always exist +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $DIR +DIR="$( cd "$( dirname "$( readlink "${BASH_SOURCE[0]}" )" )" && pwd )" +cd $DIR + +./hush-cli -ac_name=TESTEQUIHASH $@ diff --git a/src/testequihashd b/src/testequihashd new file mode 100755 index 000000000..4e7a0c64c --- /dev/null +++ b/src/testequihashd @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +# Copyright 2016-2022 The Hush Developers +# Copyright 2022 The DragonX Developers +# Released under the GPLv3 + +# set working directory to the location of this script +# readlink -f does not always exist +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +cd $DIR +DIR="$( cd "$( dirname "$( readlink "${BASH_SOURCE[0]}" )" )" && pwd )" +cd $DIR + +BLOCKTIME=18 +SUPPLY=0 + +# same as TESTDRAGONX except equihash and different ac_name +# and debug=pow which is the equivalent of debug=randomx for equihash mining +./hush-smart-chain -ac_name=TESTEQUIHASH -ac_halving=3500000 -ac_reward=300000000 -ac_blocktime=$BLOCKTIME -ac_private=1 -ac_supply=$SUPPLY -gen=1 -genproclimit=1 -testnode=1 -debug=pow $@ From c81b49c96c780455125be726098384858048dbfa Mon Sep 17 00:00:00 2001 From: Duke Leto Date: Tue, 8 Nov 2022 09:55:46 -0500 Subject: [PATCH 2/2] fix params for testcoins --- src/testdragonxd | 2 +- src/testequihashd | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/testdragonxd b/src/testdragonxd index d769509d5..6a1c9e86f 100755 --- a/src/testdragonxd +++ b/src/testdragonxd @@ -14,4 +14,4 @@ BLOCKTIME=18 SUPPLY=0 # Remember Remember the 5th November for freedom of speech is not free!! -./hush-smart-chain -ac_name=TESTDRAGONX -ac_algo=randomx -ac_halving=3500000 -ac_reward=300000000 -ac_blocktime=$BLOCKTIME -ac_private=1 -ac_supply=$SUPPLY -gen=1 -genproclimit=1 -debug=randomx $@ +./hush-smart-chain -ac_name=TESTDRAGONX -ac_algo=randomx -ac_halving=3500000 -ac_reward=300000000 -ac_blocktime=$BLOCKTIME -ac_private=1 -ac_supply=$SUPPLY -debug=randomx $@ diff --git a/src/testequihashd b/src/testequihashd index 4e7a0c64c..9571566a2 100755 --- a/src/testequihashd +++ b/src/testequihashd @@ -15,4 +15,4 @@ SUPPLY=0 # same as TESTDRAGONX except equihash and different ac_name # and debug=pow which is the equivalent of debug=randomx for equihash mining -./hush-smart-chain -ac_name=TESTEQUIHASH -ac_halving=3500000 -ac_reward=300000000 -ac_blocktime=$BLOCKTIME -ac_private=1 -ac_supply=$SUPPLY -gen=1 -genproclimit=1 -testnode=1 -debug=pow $@ +./hush-smart-chain -ac_name=TESTEQUIHASH -ac_halving=3500000 -ac_reward=300000000 -ac_blocktime=$BLOCKTIME -ac_private=1 -ac_supply=$SUPPLY -debug=pow $@