Skip to content

Commit 0cf8f46

Browse files
committed
Add dashboard-dir and cors-origin to stress test script
The web dashboard wasn't showing because stress_test_embedded.sh was missing --dashboard-dir web-static and --cors-origin '*'.
1 parent 05a53ac commit 0cf8f46

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

stress_test_embedded.sh

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
# Phase 4 Stress Test: 48h run in --embedded-ltc mode (no daemon)
3+
# LTC testnet peer: 192.168.86.26:19335
4+
5+
set -euo pipefail
6+
7+
BINARY="/home/user0/Github/c2pool/build/src/c2pool/c2pool"
8+
LOGDIR="/home/user0/Github/c2pool/stress-test-logs"
9+
LOGFILE="$LOGDIR/stress_$(date +%Y%m%d_%H%M%S).log"
10+
PIDFILE="$LOGDIR/c2pool.pid"
11+
12+
mkdir -p "$LOGDIR"
13+
14+
# LTC testnet address for payout (bech32 testnet format)
15+
PAYOUT_ADDR="tltc1qg8emapewwtdxkr0m0jfvlsmflkqfkv3sdjhcne"
16+
17+
echo "=== Phase 4 Stress Test: $(date) ===" | tee "$LOGFILE"
18+
echo "Mode: --embedded-ltc (no daemon)" | tee -a "$LOGFILE"
19+
echo "LTC testnet P2P: 192.168.86.26:19335" | tee -a "$LOGFILE"
20+
echo "Payout: $PAYOUT_ADDR" | tee -a "$LOGFILE"
21+
echo "" | tee -a "$LOGFILE"
22+
23+
exec "$BINARY" \
24+
--integrated \
25+
--embedded-ltc \
26+
--testnet \
27+
--coind-p2p-address 192.168.86.26 \
28+
--coind-p2p-port 19335 \
29+
--node-owner-address "$PAYOUT_ADDR" \
30+
--p2pool-port 19338 \
31+
--worker-port 19327 \
32+
--web-port 8080 \
33+
--dashboard-dir web-static \
34+
--cors-origin '*' \
35+
--p2p-max-peers 20 \
36+
--stratum-min-diff 0.001 \
37+
--stratum-max-diff 65536 \
38+
--stratum-target-time 10 \
39+
2>&1 | tee -a "$LOGFILE"

0 commit comments

Comments
 (0)