-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathlantern-cmd.sh
More file actions
executable file
·50 lines (44 loc) · 1.71 KB
/
Copy pathlantern-cmd.sh
File metadata and controls
executable file
·50 lines (44 loc) · 1.71 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
#-----------------------lantern setup----------------------
LANTERN_IMAGE="piertwo/lantern:v0.0.2"
devnet_flag=""
if [ -n "$devnet" ]; then
devnet_flag="--devnet $devnet"
fi
# Set aggregator flag based on isAggregator value
aggregator_flag=""
if [ "$isAggregator" == "true" ]; then
aggregator_flag="--is-aggregator"
fi
# Lantern's repo: https://github.com/Pier-Two/lantern
node_binary="$scriptDir/lantern/build/lantern_cli \
--data-dir $dataDir/$item \
--genesis-config $configDir/config.yaml \
--validator-registry-path $configDir/validators.yaml \
--genesis-state $configDir/genesis.ssz \
--validator-config $configDir/validator-config.yaml \
$devnet_flag \
--nodes-path $configDir/nodes.yaml \
--node-id $item --node-key-path $configDir/$privKeyPath \
--listen-address /ip4/0.0.0.0/udp/$quicPort/quic-v1 \
--metrics-port $metricsPort \
--http-port 5055 \
--log-level debug \
--hash-sig-key-dir $configDir/hash-sig-keys \
$aggregator_flag"
node_docker="$LANTERN_IMAGE --data-dir /data \
--genesis-config /config/config.yaml \
--validator-registry-path /config/validators.yaml \
--genesis-state /config/genesis.ssz \
--validator-config /config/validator-config.yaml \
$devnet_flag \
--nodes-path /config/nodes.yaml \
--node-id $item --node-key-path /config/$privKeyPath \
--listen-address /ip4/0.0.0.0/udp/$quicPort/quic-v1 \
--metrics-port $metricsPort \
--http-port 5055 \
--log-level debug \
--hash-sig-key-dir /config/hash-sig-keys \
$aggregator_flag"
# choose either binary or docker
node_setup="docker"