aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-02 05:55:07 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-03-02 05:55:07 +0200
commitfe55a20c1d3d5eca8dd069167a444a1d82328294 (patch)
tree13265ee117615dd57e71ace20a3bfdb42f28e39e /bin
parent00f7cb02f91e8aae9df69c33e28b05b54bd82561 (diff)
downloadarching-kaos-tools-fe55a20c1d3d5eca8dd069167a444a1d82328294.tar.gz
arching-kaos-tools-fe55a20c1d3d5eca8dd069167a444a1d82328294.tar.bz2
arching-kaos-tools-fe55a20c1d3d5eca8dd069167a444a1d82328294.zip
Removed zpairs section from mining data, only zblocks are supported
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