aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
Diffstat (limited to 'api')
-rwxr-xr-xapi/make_cache.sh2
-rwxr-xr-xapi/tests/latest_known_mined_block.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/api/make_cache.sh b/api/make_cache.sh
index e5f9bfc..c075f27 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 schain --get-latest > $AK_CACHEDIR/ak-find-latest-mined-sblock.json
ak zchain --crawl > $AK_CACHEDIR/ak-get-chain-minified.json
ak zchain --get-latest > $AK_CACHEDIR/ak-get-zlatest.json
diff --git a/api/tests/latest_known_mined_block.sh b/api/tests/latest_known_mined_block.sh
index c4e40bb..64ff612 100755
--- a/api/tests/latest_known_mined_block.sh
+++ b/api/tests/latest_known_mined_block.sh
@@ -5,7 +5,7 @@ printf '[%s]\n' "$PROGRAM"
printf "TEST\t/slatest\n"
printf "\t01:\tendpoint"
A="$(curl http://127.0.0.1:8610/v0/slatest 2>/dev/null)"
-B="$(ak-find-latest-mined-sblock)"
+B="$(ak schain --get-latest)"
if [ "$A" == "$B" ]
then
printf '\t\t\033[0;32mPASSED\033[0;0m'