Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client-cmds/ethlambda-cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ node_binary="$binary_path \
$checkpoint_sync_flag"

# Command when running as docker container
node_docker="ghcr.io/lambdaclass/ethlambda:devnet2 \
node_docker="ghcr.io/lambdaclass/ethlambda:devnet3 \
--custom-network-config-dir /config \
--gossipsub-port $quicPort \
--node-id $item \
Expand Down
19 changes: 16 additions & 3 deletions client-cmds/lantern-cmd.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

#-----------------------lantern setup----------------------
LANTERN_IMAGE="piertwo/lantern:v0.0.2"
LANTERN_IMAGE="piertwo/lantern:v0.0.3-test"

devnet_flag=""
if [ -n "$devnet" ]; then
Expand All @@ -20,6 +20,17 @@ if [ -n "${checkpoint_sync_url:-}" ]; then
checkpoint_sync_flag="--checkpoint-sync-url $checkpoint_sync_url"
fi

# Set attestation committee count flag if explicitly configured
attestation_committee_flag=""
if [ -n "$attestationCommitteeCount" ]; then
attestation_committee_flag="--attestation-committee-count $attestationCommitteeCount"
fi

# Set HTTP port (default to 5055 if not specified in validator-config.yaml)
if [ -z "$httpPort" ]; then
httpPort="5055"
fi

# Lantern's repo: https://github.com/Pier-Two/lantern
node_binary="$scriptDir/lantern/build/lantern_cli \
--data-dir $dataDir/$item \
Expand All @@ -32,9 +43,10 @@ node_binary="$scriptDir/lantern/build/lantern_cli \
--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 \
--http-port $httpPort \
--log-level debug \
--hash-sig-key-dir $configDir/hash-sig-keys \
$attestation_committee_flag \
$aggregator_flag \
$checkpoint_sync_flag"

Expand All @@ -48,9 +60,10 @@ node_docker="$LANTERN_IMAGE --data-dir /data \
--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 \
--http-port $httpPort \
--log-level debug \
--hash-sig-key-dir /config/hash-sig-keys \
$attestation_committee_flag \
$aggregator_flag \
$checkpoint_sync_flag"

Expand Down
44 changes: 44 additions & 0 deletions client-cmds/leanspec-cmd.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/bin/bash

#-----------------------leanspec setup----------------------
# leanSpec (Python) consensus client - same volume layout as zeam/ethlambda.
# Build the image from leanSpec repo: docker build --target node -t lean-spec:node .
# Or use a published image and set LEAN_SPEC_IMAGE env var.

LEAN_SPEC_IMAGE="${LEAN_SPEC_IMAGE:-0xpartha/leanSpec-node:latest}"

# Set aggregator flag based on isAggregator value
aggregator_flag=""
if [ "$isAggregator" == "true" ]; then
aggregator_flag="--is-aggregator"
fi

# Set checkpoint sync URL when restarting with checkpoint sync
checkpoint_sync_flag=""
if [ -n "${checkpoint_sync_url:-}" ]; then
checkpoint_sync_flag="--checkpoint-sync-url $checkpoint_sync_url"
fi

# Command when running as binary
node_binary="uv run python -m lean_spec \
--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 \
$checkpoint_sync_flag"

# Command when running as docker container
node_docker="$LEAN_SPEC_IMAGE \
--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 \
$checkpoint_sync_flag"

node_setup="docker"
12 changes: 10 additions & 2 deletions client-cmds/zeam-cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,33 @@ if [ -n "${checkpoint_sync_url:-}" ]; then
checkpoint_sync_flag="--checkpoint-sync-url $checkpoint_sync_url"
fi

# Set attestation committee count flag if explicitly configured
attestation_committee_flag=""
if [ -n "$attestationCommitteeCount" ]; then
attestation_committee_flag="--attestation-committee-count $attestationCommitteeCount"
fi

node_binary="$scriptDir/../zig-out/bin/zeam node \
--custom_genesis $configDir \
--validator_config $validatorConfig \
--data-dir $dataDir/$item \
--node-id $item --node-key $configDir/$item.key \
$metrics_flag \
--api-port $metricsPort \
$attestation_committee_flag \
$aggregator_flag \
$checkpoint_sync_flag"

node_docker="--security-opt seccomp=unconfined blockblaz/zeam:devnet2 node \
node_docker="--security-opt seccomp=unconfined 0xpartha/zeam:devnet3 node \
--custom_genesis /config \
--validator_config $validatorConfig \
--data-dir /data \
--node-id $item --node-key /config/$item.key \
$metrics_flag \
--api-port $metricsPort \
$attestation_committee_flag \
$aggregator_flag \
$checkpoint_sync_flag"

# choose either binary or docker
node_setup="docker"
node_setup="docker"
Loading