logos-messaging-nim/simulations/mixnet/check_cover_traffic.sh
Prem Chaitanya Prathi 8add44d579
chore: bump nim-libp2p and mix-rln plugin for proof token reuse
- nim-libp2p: adds ProofResult, reclaimProofToken, same-epoch precomp
- mix-rln-spam-protection-plugin: implements messageId reuse from
  discarded cover packets

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 17:31:21 +05:30

19 lines
489 B
Bash
Executable File

#!/bin/bash
# Check cover traffic metrics from all mix nodes.
# Ports: 8008 + ports-shift (1-5) = 8009-8013
echo "=== Cover Traffic Metrics ==="
echo ""
for i in 1 2 3 4 5; do
port=$((8008 + i))
echo "--- Node $i (port $port) ---"
metrics=$(curl -s "http://127.0.0.1:$port/metrics" 2>/dev/null)
if [ -z "$metrics" ]; then
echo " (unreachable)"
else
echo "$metrics" | grep -E "mix_cover_|mix_slot_" | grep -v "^#" || echo " (no cover metrics yet)"
fi
echo ""
done