diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ak | 12 | ||||
-rwxr-xr-x | bin/ak-miner-script | 12 |
2 files changed, 24 insertions, 0 deletions
@@ -17,6 +17,7 @@ descriptionString="Arching Kaos CLI" source $AK_LIBDIR/_ak_log source $AK_LIBDIR/_ak_script +source $AK_WORKDIR/rc if [ $# -eq 0 ] then @@ -49,6 +50,17 @@ then fi subcmd="$(echo $* | sed -e 's/ /-/g')" + +# Add functionality for separate modules directory +# case "$1" in +# -m|--module) +# shift +# subcmd="modules/$(echo $* | sed -e 's/ /-/g')" +# ;; +# esac +# +# echo $subcmd + if [ -f "$AK_BINDIR/ak-$subcmd" ] then $(echo ak-$subcmd) 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" |