From 465d5db06e56dc21072a8ff01258f6815d340b00 Mon Sep 17 00:00:00 2001 From: kaotisk Date: Wed, 27 Mar 2024 09:34:01 +0200 Subject: new lib _ak_ipfs --- bin/ak-mempool | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'bin/ak-mempool') 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 -- cgit v1.2.3