aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-miner-script
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-06-02 04:32:13 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-06-02 04:32:13 +0300
commitb61b49bd34514c9b3b7f5abca054ffb8351c119a (patch)
treef61047c3c0e6dc9580f358362ecbdc76acb49119 /bin/ak-miner-script
parentff2f210d6662c7231547f04d04b5a9c8fb2cf706 (diff)
downloadarching-kaos-tools-b61b49bd34514c9b3b7f5abca054ffb8351c119a.tar.gz
arching-kaos-tools-b61b49bd34514c9b3b7f5abca054ffb8351c119a.tar.bz2
arching-kaos-tools-b61b49bd34514c9b3b7f5abca054ffb8351c119a.zip
Zero effect, preample to upcoming changes
Diffstat (limited to 'bin/ak-miner-script')
-rwxr-xr-xbin/ak-miner-script12
1 files changed, 12 insertions, 0 deletions
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"