aboutsummaryrefslogtreecommitdiff
path: root/lib/_ak_zblock
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-07-24 16:43:15 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-07-24 16:44:02 +0300
commita283069920e8360e33887112b63716a1bccb5b86 (patch)
tree29e44e879a602ac3db7057af8e8c716464ededfd /lib/_ak_zblock
parent3582478dfa3e10e4a1942d69e21924695ba2ee71 (diff)
downloadarching-kaos-tools-a283069920e8360e33887112b63716a1bccb5b86.tar.gz
arching-kaos-tools-a283069920e8360e33887112b63716a1bccb5b86.tar.bz2
arching-kaos-tools-a283069920e8360e33887112b63716a1bccb5b86.zip
Avoid calling _ak_zchain functions (causes breaks)
Diffstat (limited to 'lib/_ak_zblock')
-rwxr-xr-xlib/_ak_zblock4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/_ak_zblock b/lib/_ak_zblock
index 78c1586..40f548a 100755
--- a/lib/_ak_zblock
+++ b/lib/_ak_zblock
@@ -665,7 +665,7 @@ _ak_zblock_announce(){
--connect-timeout 3 \
--header 'Content-Type: application/json' \
--data-raw '{"zblock":"'$1'"}' \
- "http://127.0.0.1:8610/v0/announce/zblock" \
+ "http://[$(_ak_settings_get api.bindToIP)]:8610/v0/announce/zblock" \
2>/dev/null | jq -M -c > /dev/null
if [ $? -ne 0 ]
then
@@ -677,7 +677,7 @@ _ak_zblock_announce(){
curl \
--connect-timeout 3 \
--header 'Content-Type: application/json' \
- --data-raw '{"zblock":"'$(_ak_zchain_get_latest)'"}' \
+ --data-raw '{"zblock":"'$(ak-zchain --get-latest)'"}' \
"http://127.0.0.1:8610/v0/announce/zblock" \
2>/dev/null | jq -M -c > /dev/null
if [ $? -ne 0 ]