Skip to content

Commit d797c6a

Browse files
committed
feat: Add testnet completion script for building and starting validators
1 parent 98dc437 commit d797c6a

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

testnet/scripts/complete-deploy.sh

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#!/bin/bash
2+
# Complete testnet deployment - build and start
3+
4+
set -e
5+
6+
echo "🔨 Building Demiurge node binary (this will take 15-20 minutes)..."
7+
cd ~/Demiurge-Blockchain
8+
9+
# Source cargo environment
10+
source ~/.cargo/env
11+
12+
# Build the node
13+
echo "Starting build..."
14+
cargo build --release 2>&1 | tail -20
15+
16+
# Copy binary
17+
echo "📦 Installing binary..."
18+
sudo cp target/release/demiurge-node /opt/demiurge/
19+
20+
# Check if binary exists
21+
if [ ! -f /opt/demiurge/demiurge-node ]; then
22+
echo "❌ Binary not found. Build may have failed."
23+
echo "Check: cargo build --release"
24+
exit 1
25+
fi
26+
27+
echo "✓ Binary installed"
28+
29+
# Reload systemd
30+
sudo systemctl daemon-reload
31+
32+
# Start validators
33+
echo "🎬 Starting validators..."
34+
echo "Starting Alpha (Bootstrap)..."
35+
sudo systemctl start demiurge-validator-alpha
36+
sleep 5
37+
38+
echo "Starting Beta..."
39+
sudo systemctl start demiurge-validator-beta
40+
sleep 2
41+
42+
echo "Starting Gamma..."
43+
sudo systemctl start demiurge-validator-gamma
44+
sleep 2
45+
46+
echo "Starting Delta..."
47+
sudo systemctl start demiurge-validator-delta
48+
sleep 2
49+
50+
echo ""
51+
echo "✅ Testnet deployment complete!"
52+
echo ""
53+
echo "📊 Check status:"
54+
echo " cd Demiurge-Blockchain/testnet"
55+
echo " ./scripts/manage.sh status"
56+
echo ""
57+
echo "📈 Monitor:"
58+
echo " ./scripts/monitor.sh"
59+
echo ""
60+
echo "📋 View logs:"
61+
echo " journalctl -u demiurge-validator-alpha -f"

0 commit comments

Comments
 (0)