-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathethlambda-cmd.sh
More file actions
33 lines (27 loc) · 943 Bytes
/
ethlambda-cmd.sh
File metadata and controls
33 lines (27 loc) · 943 Bytes
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
#!/bin/bash
#-----------------------ethlambda setup----------------------
binary_path="$scriptDir/../ethlambda/target/release/ethlambda"
# Set aggregator flag based on isAggregator value
aggregator_flag=""
if [ "$isAggregator" == "true" ]; then
aggregator_flag="--is-aggregator"
fi
# Command when running as binary
node_binary="$binary_path \
--custom-network-config-dir $configDir \
--gossipsub-port $quicPort \
--node-id $item \
--node-key $configDir/$item.key \
--metrics-address 0.0.0.0 \
--metrics-port $metricsPort \
$aggregator_flag"
# Command when running as docker container
node_docker="ghcr.io/lambdaclass/ethlambda:devnet2 \
--custom-network-config-dir /config \
--gossipsub-port $quicPort \
--node-id $item \
--node-key /config/$item.key \
--metrics-address 0.0.0.0 \
--metrics-port $metricsPort \
$aggregator_flag"
node_setup="docker"