-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
36 lines (30 loc) · 1.13 KB
/
run.sh
File metadata and controls
36 lines (30 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# Check if the 'credentials' directory does not exist
if [ ! -d "credentials" ]; then
echo "LND credentials not found in image"
exit 1
fi
# LND credentials are exported as environment variables for
# your program to use.
export LND_0_RPCSERVER="lightning-0.warnet-armada"
export LND_0_CERT="/credentials/lnd0-tls.cert"
export LND_0_MACAROON="/credentials/lnd0-admin.macaroon"
export LND_1_RPCSERVER="lightning-1.warnet-armada"
export LND_1_CERT="/credentials/lnd1-tls.cert"
export LND_1_MACAROON="/credentials/lnd1-admin.macaroon"
export LND_2_RPCSERVER="lightning-2.warnet-armada"
export LND_2_CERT="/credentials/lnd2-tls.cert"
export LND_2_MACAROON="/credentials/lnd2-admin.macaroon"
export TARGET=$(cat target.txt)
# Fill in code here to:
# - Clone your repo
# - Install your program
# - Run it with the certs/macaroons provided above
yes | apt install protobuf-compiler
./connect_nodes.sh
./fund.sh
git clone https://github.com/ZmnSCPxj-jr/z-attack
cd z-attack
git reset --hard
git pull
RUST_BACKTRACE=1 cargo run ${LND_0_RPCSERVER} ${LND_0_CERT} ${LND_0_MACAROON} ${LND_1_RPCSERVER} ${LND_1_CERT} ${LND_1_MACAROON} ${TARGET}