From 465d5db06e56dc21072a8ff01258f6815d340b00 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 27 Mar 2024 09:34:01 +0200 Subject: new lib _ak_ipfs --- bin/ak-zblock-announce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 bin/ak-zblock-announce (limited to 'bin/ak-zblock-announce') diff --git a/bin/ak-zblock-announce b/bin/ak-zblock-announce new file mode 100755 index 0000000..74bcdfc --- /dev/null +++ b/bin/ak-zblock-announce @@ -0,0 +1,14 @@ +#!/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 + -- cgit v1.2.3