aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-zblock-announce
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-03-31 12:00:59 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-03-31 12:00:59 +0300
commite4f18be94261b39544ef3bc50321f6aedeb45bd6 (patch)
tree2c79daf0bdc91beb91846f00bb3d3f51236967cf /bin/ak-zblock-announce
parent23a61661f03c03a357ad8aa47ba3595fabe24de1 (diff)
downloadarching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.tar.gz
arching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.tar.bz2
arching-kaos-tools-e4f18be94261b39544ef3bc50321f6aedeb45bd6.zip
huge refactor, might breaking things
Diffstat (limited to 'bin/ak-zblock-announce')
-rwxr-xr-xbin/ak-zblock-announce14
1 files changed, 0 insertions, 14 deletions
diff --git a/bin/ak-zblock-announce b/bin/ak-zblock-announce
deleted file mode 100755
index 74bcdfc..0000000
--- a/bin/ak-zblock-announce
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/bash
-PROGRAM="$(basename $0)"
-descriptionString="Announce zblock to local API for schain processing"
-source $AK_LIBDIR/_ak_logit
-source $AK_LIBDIR/_ak_script_description
-
-curl http://127.0.0.1:8610/v0/announce/zblock --header 'Content-Type: application/json' --data-raw '{"zblock":"'$(ak-get-zlatest)'"}' 2>/dev/null | jq -M -c > /dev/null
-if [ "$?" == "0" ]
-then
- logit "INFO" "zblock $zblock announced"
-else
- logit "ERROR" "zblock $zblock announcement failed"
-fi
-