From 432acf6bf5cd42025a63266e77bacd8c5256c0a5 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Mon, 24 Jun 2024 04:00:36 +0300 Subject: ak-network: script to handle connectivity ```bash ak-network - AK Nettool ======================= Network tools Usage: -h, --help Prints this help message -s, --scan [ipfs|cjdns|stellar] Scan network(s) for peers -c, --connect [ipfs|cjdns] Connect to network(s) -p, --peers [ipfs|cjdns|stellar] Outputs peers found 1719190884 [ERROR] ak-network command finished (1) ``` Functions introduced or refactored: - _ak_network_cjdns_scanner - _ak_network_stellar_show_ids - _ak_network_stellar_get_next_page - _ak_network_stellar_proceed_to_next_page - _ak_network_stellar_get_asset_holders - _ak_network_scan_stellar - _ak_network_scan_ipfs - _ak_network_scan_cjdns - _ak_network_scan - _ak_network_show_peers_stellar - _ak_network_show_peers_cjdns - _ak_network_show_peers_ipfs - _ak_network_show_peers - _ak_network_ipfs_connect_bootstrap - _ak_network_cjdns_connect - _ak_network_cjdns_connect_bootstrap - _ak_network_connect --- bin/ak-peers-get-stellar | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 bin/ak-peers-get-stellar (limited to 'bin/ak-peers-get-stellar') diff --git a/bin/ak-peers-get-stellar b/bin/ak-peers-get-stellar deleted file mode 100755 index ec9eaa6..0000000 --- a/bin/ak-peers-get-stellar +++ /dev/null @@ -1,18 +0,0 @@ -#!/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 -- cgit v1.2.3