aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/ak-miner-script6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ak-miner-script b/bin/ak-miner-script
index 7b83848..28bb056 100755
--- a/bin/ak-miner-script
+++ b/bin/ak-miner-script
@@ -8,7 +8,7 @@ proofofwork(){
l=1; while [ $l = 1 ]
do
TIMESTAMP="$(date -u +%s)"
- SHA="$(echo $TEST'"zpairs":'$(cat /home/$USER/.arching-kaos/mempool/szch)',"nonce":"'$i'","previous":"'$PRE'","timestamp":"'$TIMESTAMP'","miner":"'$MINER'","reward":"40"}' | sha512sum | awk '{ print $1 }')"
+ SHA="$(echo $TEST'"nonce":"'$i'","previous":"'$PRE'","timestamp":"'$TIMESTAMP'","miner":"'$MINER'","reward":"40"}' | sha512sum | awk '{ print $1 }')"
# Static difficulty for securing the sblock
echo $SHA | grep -e '^000'
@@ -16,8 +16,8 @@ proofofwork(){
then
echo "SHA512 is $SHA"
echo "Mined block:"
- echo $TEST'"zpairs":'$(cat /home/$USER/,arching-kaos/mempool/szch)',"nonce":"'$i'","previous":"'$PRE'","timestamp":"'$TIMESTAMP'","miner":"'$MINER'","reward":"40"}' | jq --compact-output > /home/$USER/.arching-kaos/mined_blocks/$SHA
- cat /home/$USER/.arching-kaos/mined_blocks/$SHA | jq
+ echo $TEST'"nonce":"'$i'","previous":"'$PRE'","timestamp":"'$TIMESTAMP'","miner":"'$MINER'","reward":"40"}' | jq --compact-output > $AK_MINEDBLOCKSDIR/$SHA
+ cat $AK_MINEDBLOCKSDIR/$SHA | jq
# exit 0
# Instead of exiting, we will now sleep for 60 seconds
# after that we continue mining on top of the just mined