blob: ec9eaa675ed9163c46a1ba58f4a503560f51ade8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 '{"stellar":{"address":"%s","config":"%s"},"node_info":%s}' "$stellarAddress" "$akConfig" "$(_ak_ipfs_cat /ipns/$akConfig)"
done
printf ']'
) #| jq
|