#!/bin/sh # One client: given a relay address and nothing else, discover the back ends and sync every chain. # # usage: client.sh set -eu relay=$1 echo "== client via $relay" echo "-- discovery (btc)" nostrino-discover -relay "$relay" -chain btc echo "-- discovery (blake)" nostrino-discover -relay "$relay" -chain blake echo "-- discovery (alt)" nostrino-discover -relay "$relay" -chain alt for chain in btc blake alt; do echo "-- sync $chain through the tunnel" nostrino-neutrino -relay "$relay" -profile "/profiles/$chain.json" \ -headers-only -memory -json | grep -E '"peer_tip"|"elapsed_millis"' done