forked from luca-arweave/testweave-arweave-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start_w_epmd.sh
executable file
·50 lines (48 loc) · 1.45 KB
/
start_w_epmd.sh
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/sh
### ARWEAVE ####
# file: start_w_epmd.sh
while getopts r: flag
do
case "${flag}" in
r) runmode=${OPTARG};;
esac
done
echo "runmode: $runmode";
case $runmode in
test)
echo "selected TEST"
/usr/bin/epmd -daemon && \
/bin/bash /opt/arweave/bin/start init \
requests_per_minute_limit 9999999999999999999999999999999999999999 \
disk_space 1000000 \
tx_propagation_parallelization 3 \
max_emitters 1 \
enable arql_tags_index \
port 1984
;;
normal)
echo "selected NORMAL"
/usr/bin/epmd -daemon && \
/bin/bash /opt/arweave/bin/start data_dir /mnt/arweave-data \
max_miners 0 \
peer 159.203.158.108 \
peer 138.197.232.192 \
peer 134.209.27.233 \
peer 167.71.128.173 \
peer 134.209.27.239 \
peer 209.97.191.10 \
peer 46.101.67.172 \
requests_per_minute_limit 9999999999999999999999999999999999999999 \
disk_space 1000000 \
tx_propagation_parallelization 3 \
max_emitters 1 \
enable arql_tags_index \
port 1984
;;
*)
echo "Usage: $0 {test|node|miner}"
echo "Commands [ $0 ]"
echo "Args [ $1 ]"
exit 1
esac
# ../erts-10.3.5/bin/epmd -daemon && \