From 7550b8ccb0b05d3b11a9bfcb45cee0849dc05f76 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 11 Sep 2023 20:57:04 +0300 Subject: Workaround for IPNS unresolvable zchain links - Adds a "zlatest" field to the configuration of the node - We update and publish the configuration each time we change the latest block of our zchain --- bin/ak-zchain-rebase | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin/ak-zchain-rebase') diff --git a/bin/ak-zchain-rebase b/bin/ak-zchain-rebase index 3115083..255ec69 100755 --- a/bin/ak-zchain-rebase +++ b/bin/ak-zchain-rebase @@ -40,6 +40,12 @@ rebase (){ ak-ipfs-name-publish --key=zchain /ipfs/$(cat $AK_ZLATEST) if [ $? != 0 ]; then exit 1; fi + ak-config publish + if [ "$?" -ne 0 ] + then + logit "[ERROR]" "Could not publish new configuration" + exit 1 + fi echo "Rebase was successful" exit 0 } -- cgit v1.2.3