From a283069920e8360e33887112b63716a1bccb5b86 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 24 Jul 2024 16:43:15 +0300 Subject: Avoid calling _ak_zchain functions (causes breaks) --- lib/_ak_zblock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 ] -- cgit v1.2.3