diff options
Diffstat (limited to 'api')
-rwxr-xr-x | api/make_cache.sh | 2 | ||||
-rw-r--r-- | api/routes/getZChain/index.js | 2 | ||||
-rwxr-xr-x | api/tests/node_local_chain.sh | 2 | ||||
-rw-r--r-- | api/validators/ZblockValidator/index.js | 2 | ||||
-rw-r--r-- | api/validators/ZchainValidator/index.js | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/api/make_cache.sh b/api/make_cache.sh index 9745c88..71e80ca 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-enter > $AK_CACHEDIR/ak-get-chain-minified.json +ak zchain --crawl > $AK_CACHEDIR/ak-get-chain-minified.json ak-get-zlatest > $AK_CACHEDIR/ak-get-zlatest.json diff --git a/api/routes/getZChain/index.js b/api/routes/getZChain/index.js index d30bb0a..6df2d7f 100644 --- a/api/routes/getZChain/index.js +++ b/api/routes/getZChain/index.js @@ -8,7 +8,7 @@ const { spawn } = require('child_process'); * */ module.exports = (req, res) => { - const command = spawn("ak-enter"); + const command = spawn("ak", ["zchain", "--crawl"]); response_string = ""; command.stdout.on("data", data => { response_string = response_string + data; diff --git a/api/tests/node_local_chain.sh b/api/tests/node_local_chain.sh index 4ad4c33..d1b87b4 100755 --- a/api/tests/node_local_chain.sh +++ b/api/tests/node_local_chain.sh @@ -4,7 +4,7 @@ printf '[%s]\n' "$PROGRAM" printf "TEST /zchain\n" printf "\t01:\tComparing API with CLI response..." API_RESPONSE="$(curl http://127.0.0.1:8610/v0/zchain 2>/dev/null | jq -c -M | sha512sum - | awk '{print $1 }')" -CMD_RESPONSE="$(ak-enter | jq -c -M | sha512sum - | awk '{ print $1 }')" +CMD_RESPONSE="$(ak zchain --crawl | jq -c -M | sha512sum - | awk '{ print $1 }')" if [ "$API_RESPONSE" == "$CMD_RESPONSE" ] then printf "\t\t\033[0;32mPASSED\033[0;0m" diff --git a/api/validators/ZblockValidator/index.js b/api/validators/ZblockValidator/index.js index 873a971..e3656d6 100644 --- a/api/validators/ZblockValidator/index.js +++ b/api/validators/ZblockValidator/index.js @@ -65,7 +65,7 @@ function continuethings(exitcode,sh,res){ * */ module.exports = (ch, res) => { - const command = spawn("ak-enter",[ch]); + const command = spawn("ak",["zchain", "--crawl", ch]); response_string = ""; command.stdout.on("data", data => { response_string = response_string + data; diff --git a/api/validators/ZchainValidator/index.js b/api/validators/ZchainValidator/index.js index f4080d0..80939d0 100644 --- a/api/validators/ZchainValidator/index.js +++ b/api/validators/ZchainValidator/index.js @@ -65,7 +65,7 @@ function continuethings(exitcode,sh,res){ * */ module.exports = (ch, res) => { - const command = spawn("ak-enter",["-n",ch]); + const command = spawn("ak",["zchain", "--crawl", "-n", ch]); response_string = ""; command.stdout.on("data", data => { response_string = response_string + data; |