diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ak-comments | 2 | ||||
-rwxr-xr-x | bin/ak-pack_z_block | 2 | ||||
-rwxr-xr-x | bin/ak-zchain-chk | 14 |
3 files changed, 9 insertions, 9 deletions
diff --git a/bin/ak-comments b/bin/ak-comments index cd86a08..416d2a8 100755 --- a/bin/ak-comments +++ b/bin/ak-comments @@ -31,7 +31,7 @@ create(){ cd $ZCOMMENTSDIR if [ ! -z $REFER_TO ] then - reference create $REFERENCE $REFER_TO + ak-reference create $REFERENCE $REFER_TO fi } diff --git a/bin/ak-pack_z_block b/bin/ak-pack_z_block index 7465897..a974c7d 100755 --- a/bin/ak-pack_z_block +++ b/bin/ak-pack_z_block @@ -109,7 +109,7 @@ then # Optional or extending with # python send_as_ak_tx $ZBLOCK # or for "offline" use - echo $ZBLOCK > $ZLATEST + echo $ZBLOCK > $AK_ZLATEST ak-ipfs-name-publish --key=zchain $ZBLOCK > /dev/null 2>&1 if [ "$?" -ne 0 ] then diff --git a/bin/ak-zchain-chk b/bin/ak-zchain-chk index c5a97cf..5ec9960 100755 --- a/bin/ak-zchain-chk +++ b/bin/ak-zchain-chk @@ -19,23 +19,23 @@ then elif [ ! -z "$1" ] && [ "$1" == "-f" ] || [ "$1" == "--fix" ] then fix="1" - entrance="$(cat $ZLATEST)" + entrance="$(cat $AK_ZLATEST)" elif [ ! -z "$1" ] && [ "$1" == "-n" ] || [ "$1" == "--chain" ] then - entrance="$(ipns-resolve $2)" + entrance="$(ak-ipns-resolve $2)" elif [ ! -z "$1" ] then entrance="$1" else # By default we ak-enter from the latest block # We can alter this by changing this value - entrance="$(cat $ZLATEST)" + entrance="$(cat $AK_ZLATEST)" fi # We assign the IPFS CIDv0 of an empty file as this is used # as our GENESIS block, hence the "seed" that the tree grows # from. -seed="$(cat $ZGENESIS)" +seed="$(cat $AK_ZGENESIS)" # We assume that we found the entrance inside a block, hence # ZBLOCK is labeled as previous @@ -70,7 +70,7 @@ do # We create files named after each ZBLOCK IPFS CID for later # reference. Files are empty. - touch $ZBLOCKDIR/$zblock + touch $AK_ZBLOCKDIR/$zblock ak-logthis "[INFO]" "Created reference" # We concatenate the zblock's contents, pipe them through filter @@ -90,7 +90,7 @@ do ak-ipfs-cat $block | ak-json2bash > tmp-block source tmp-block ak-logthis "[INFO]" "BLOCK $block SOURCED" - touch $BLOCKDIR/$block + touch $AK_BLOCKDIR/$block ak-logthis "[INFO]" "BLOCK REFERENCED" module="$(echo $action | sed -e 's/\// /g' | awk '{ print $1 }')" ak-logthis "[INFO]" "DATA is $module module." @@ -101,7 +101,7 @@ do echo "$timestamp : $zblock -> $block -> $previous" blocks_found[$counter]="$block" fi - touch $DATADIR/$data + touch $AK_DATADIR/$data # Now, since we sourced the BLOCK to our terminal, we can search # for $previous variable. In case we don't find one, we exit with |