aboutsummaryrefslogtreecommitdiff
path: root/bin/ak-mempool
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ak-mempool')
-rwxr-xr-xbin/ak-mempool9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/ak-mempool b/bin/ak-mempool
index 1baf4c8..51f59a7 100755
--- a/bin/ak-mempool
+++ b/bin/ak-mempool
@@ -5,13 +5,16 @@
# They also are a part of our swarm.
# So should we ask for our peers?
-ak-ipfs-swarm-peers > tmp_peers
+source $AK_LIBDIR/_ak_logit
+source $AK_LIBDIR/_ak_ipfs
+
+_ak_ipfs_swarm_peers > tmp_peers
while IFS="" read -r p || [ -n "$p" ]
do
peer="$(echo "$p" | sed -e 's/^.*\///')"
- echo "Peer $peer found! Examining..."
- ak-ipfs-cat /ipns/$peer/zlatest
+ logit "INFO" "Peer $peer found! Examining..."
+ _ak_ipfs_cat /ipns/$peer/zlatest
done < tmp_peers
rm tmp_peers