#!/usr/bin/env bash # Start the network: nodes and block logs first, miners once every RPC answers. # ./start.sh nodes, then miners # ./start.sh nodes nodes and block logs only # ./start.sh miners miners only . "$(dirname "$0")/lib/common.sh" require_nodes what="${1:-all}" if [ "$what" = all ] || [ "$what" = nodes ]; then log "starting igneumd and igneum-blocklog on $(node_count) nodes" on_all 'systemctl restart igneumd && sleep 1 && systemctl restart igneum-blocklog && systemctl is-active igneumd' log "waiting for the RPC on every node" for try in $(seq 1 24); do bad=0 while IFS=$'\t' read -r -u 3 name idx reg ip access pub port; do nssh "$ip" "python3 /opt/igneum/bin/wrpc.py call getInfo >/dev/null 2>&1" > "$(results_dir_for)/events.log"