aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README2
-rwxr-xr-xapi/make_cache.sh2
-rw-r--r--api/routes/getZLatest/index.js2
-rwxr-xr-xapi/tests/node_local_zlatest.sh2
-rwxr-xr-xbin/ak-config2
-rwxr-xr-xbin/ak-get-zlatest (renamed from bin/ak-get-latest)0
6 files changed, 5 insertions, 5 deletions
diff --git a/README b/README
index 4b02cca..637a62e 100644
--- a/README
+++ b/README
@@ -217,7 +217,7 @@ ak-extract-cids # Prints the CIDs from your ZCHAIN for further usage
ak-get-akid # Returns IPFS CID of your AKID (ak-config)
ak-get-chain-minified # Obsolete, ak-enter default output
ak-get-gpg # Return your GPG key as IPFS CID
-ak-get-latest # Returns zlatest ZBLOCK according to IPFS FS
+ak-get-zlatest # Returns zlatest ZBLOCK according to IPFS FS
ak-tempassin # Creates temporary directories
Logging
diff --git a/api/make_cache.sh b/api/make_cache.sh
index 299cc00..94ec8a9 100755
--- a/api/make_cache.sh
+++ b/api/make_cache.sh
@@ -1,5 +1,5 @@
#!/bin/bash
ak-find-latest-mined-sblock > $AK_CACHEDIR/ak-find-latest-mined-sblock.json
ak-get-chain-minified > $AK_CACHEDIR/ak-get-chain-minified.json
-ak-get-latest > $AK_CACHEDIR/ak-get-latest.json
+ak-get-zlatest > $AK_CACHEDIR/ak-get-zlatest.json
diff --git a/api/routes/getZLatest/index.js b/api/routes/getZLatest/index.js
index 3eeca81..4dc1899 100644
--- a/api/routes/getZLatest/index.js
+++ b/api/routes/getZLatest/index.js
@@ -9,7 +9,7 @@ const { spawn } = require('child_process');
*
*/
module.exports = (req, res) => {
- const command = spawn("ak-get-latest");
+ const command = spawn("ak-get-zlatest");
command.stdout.on("data", data => {
res.send({zlatest:`${data}`});
});
diff --git a/api/tests/node_local_zlatest.sh b/api/tests/node_local_zlatest.sh
index f562bc6..b470f1d 100755
--- a/api/tests/node_local_zlatest.sh
+++ b/api/tests/node_local_zlatest.sh
@@ -2,7 +2,7 @@
PROGRAM="$(basename $0)"
printf '[%s]\n' "$PROGRAM"
API_RES="$(curl http://127.0.0.1:8610/v0/zlatest 2>/dev/null | sha512sum - | awk '{ printf $1 }')"
-CMD_RES="$(ak-get-latest | sed -e 's/^/{"zlatest":"/; s/$/"}/' | sha512sum - | awk '{ printf $1 }')"
+CMD_RES="$(ak-get-zlatest | sed -e 's/^/{"zlatest":"/; s/$/"}/' | sha512sum - | awk '{ printf $1 }')"
printf "TEST /zlatest\n"
printf "\t01:\tLatest is the same between API response and CLI..."
if [ "$API_RES" == "$CMD_RES" ]
diff --git a/bin/ak-config b/bin/ak-config
index 8022e42..81e2029 100755
--- a/bin/ak-config
+++ b/bin/ak-config
@@ -23,7 +23,7 @@ show(){
"genesis":"'$(cat $HOME/.arching-kaos/config/zgenesis)'",
"gpg":"'$GPG_PUB_KEY'",
"zchain":"'$(cat $HOME/.arching-kaos/config/zchain)'",
- "zlatest":"'$(ak-get-latest)'"
+ "zlatest":"'$(ak-get-zlatest)'"
}';
}
diff --git a/bin/ak-get-latest b/bin/ak-get-zlatest
index 36de493..36de493 100755
--- a/bin/ak-get-latest
+++ b/bin/ak-get-zlatest