aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-05-09 04:09:19 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-05-09 04:09:19 +0300
commite9dcfb7f9294ccc63ec526f13c56292eee8ecaac (patch)
tree26c01fb362a7e99228067a7422a0760a990e0ad1
parentbaab136c74b63100a5e314261a5cad71206a7247 (diff)
downloadarching-kaos-tools-e9dcfb7f9294ccc63ec526f13c56292eee8ecaac.tar.gz
arching-kaos-tools-e9dcfb7f9294ccc63ec526f13c56292eee8ecaac.tar.bz2
arching-kaos-tools-e9dcfb7f9294ccc63ec526f13c56292eee8ecaac.zip
peering status tools
-rwxr-xr-xbin/ak-peers-get-cjdns2
-rwxr-xr-xbin/ak-peers-get-stellar18
2 files changed, 20 insertions, 0 deletions
diff --git a/bin/ak-peers-get-cjdns b/bin/ak-peers-get-cjdns
new file mode 100755
index 0000000..dee8af4
--- /dev/null
+++ b/bin/ak-peers-get-cjdns
@@ -0,0 +1,2 @@
+#!/usr/bin/env bash
+cat $AK_ZPEERSFILE | jq \ No newline at end of file
diff --git a/bin/ak-peers-get-stellar b/bin/ak-peers-get-stellar
new file mode 100755
index 0000000..a21d3dd
--- /dev/null
+++ b/bin/ak-peers-get-stellar
@@ -0,0 +1,18 @@
+#!/usr/bin/bash
+source $AK_LIBDIR/_ak_ipfs
+stellarParticipants="$AK_WORKDIR/stellar-network-participants"
+stellarParticipantsOnline="$AK_WORKDIR/stellar-network-participants-online"
+(
+printf '['
+counter=0
+cat $stellarParticipantsOnline | while read stellarAddress akConfig
+do
+ if [ $counter -ne 0 ]
+ then
+ printf ','
+ fi
+ counter=$(( $counter + 1 ))
+ printf '{"stellarAddress":"%s","config":"%s","configExpand":%s}' "$stellarAddress" "$akConfig" "$(_ak_ipfs_cat /ipns/$akConfig)"
+done
+printf ']'
+) #| jq