Skip to content
Merged
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
3 changes: 3 additions & 0 deletions ansible/roles/zeam/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ zeam_docker_image: "blockblaz/zeam:devnet3"
zeam_binary_path: "{{ playbook_dir }}/../zig-out/bin/zeam"
deployment_mode: docker # docker or binary

# Global zeam CLI flags before `node` (keep in sync with client-cmds/zeam-cmd.sh zeam_global_flags)
zeam_global_flags: "--console-log-level debug"

# These should be passed from the playbook
node_name: ""
genesis_dir: ""
Expand Down
1 change: 1 addition & 0 deletions ansible/roles/zeam/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@
-v {{ genesis_dir }}:/config:ro
-v {{ data_dir }}/{{ node_name }}:/data
{{ zeam_docker_image }}
{{ zeam_global_flags }}
node
--custom_genesis /config
--validator_config {{ actual_validator_config }}
Expand Down
13 changes: 5 additions & 8 deletions client-cmds/zeam-cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
# Metrics enabled by default
metrics_flag="--metrics_enable"

# Global zeam CLI flags (must appear before the `node` subcommand)
zeam_global_flags="--console-log-level debug"

# Set aggregator flag based on isAggregator value
aggregator_flag=""
if [ "$isAggregator" == "true" ]; then
Expand All @@ -24,13 +27,7 @@ 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 \
node_binary="$scriptDir/../zig-out/bin/zeam $zeam_global_flags node \
--custom_genesis $configDir \
--validator_config $validatorConfig \
--data-dir $dataDir/$item \
Expand All @@ -42,7 +39,7 @@ node_binary="$scriptDir/../zig-out/bin/zeam node \
$aggregator_flag \
$checkpoint_sync_flag"

node_docker="--security-opt seccomp=unconfined blockblaz/zeam:devnet3 node \
node_docker="--security-opt seccomp=unconfined blockblaz/zeam:devnet3 $zeam_global_flags node \
--custom_genesis /config \
--validator_config $validatorConfig \
--data-dir /data \
Expand Down
Loading