From b61b49bd34514c9b3b7f5abca054ffb8351c119a Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 2 Jun 2024 04:32:13 +0300 Subject: Zero effect, preample to upcoming changes --- bin/ak-miner-script | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bin/ak-miner-script') diff --git a/bin/ak-miner-script b/bin/ak-miner-script index 002c27d..caa74d1 100755 --- a/bin/ak-miner-script +++ b/bin/ak-miner-script @@ -1,5 +1,17 @@ #!/bin/bash PROGRAM="$(basename $0)" +gather_zblocks(){ + cat $AK_ZBLOCKSFILE | \ + jq | \ + grep -e 'Qm.\{44\}' | \ + sed -e 's/\"zblock\"://g; s/ //g;' | \ + tr -d '\n'| \ + sed -e 's/""/","/g; + s/^/[&/g; s/$/&]/g; + s/^/{"zblocks":&/; + s/$/&,/g' +} + proofofwork(){ TEST="$1" PRE="$2" -- cgit v1.2.3