From 6253f643dae916b0f01c0da439cd675444abfd34 Mon Sep 17 00:00:00 2001 From: Chen Kai <281165273grape@gmail.com> Date: Mon, 20 Apr 2026 14:19:22 +0800 Subject: [PATCH] client-cmds/nlean: switch to --custom-network-config-dir MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit nlean v0.3.10-devnet4 accepts a single --custom-network-config-dir flag that mirrors the shape ethlambda / gean / zeam already take — one path under which config.yaml, nodes.yaml, annotated_validators.yaml, hash-sig-keys/ and .key are auto-discovered. Drops the bespoke --validator-config + --annotated-validators + --hash-sig-key-dir + --network combo in favour of the shared convention. --node-key continues to supply the libp2p secp256k1 identity (same pattern as gean/ethlambda/grandine/lantern). --- client-cmds/nlean-cmd.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/client-cmds/nlean-cmd.sh b/client-cmds/nlean-cmd.sh index 1cf0bde..670dbdd 100755 --- a/client-cmds/nlean-cmd.sh +++ b/client-cmds/nlean-cmd.sh @@ -60,16 +60,14 @@ binary_path="$nlean_repo/artifacts/lean-client/Lean.Client" mkdir -p "$dataDir/$item" node_binary="$binary_path \ - --validator-config $configDir/validator-config.yaml \ + --custom-network-config-dir $configDir \ --node $item \ --data-dir $dataDir/$item \ - --network $nlean_network_name \ --node-key $configDir/$node_private_key_path \ --socket-port $quicPort \ --metrics $enable_metrics \ --metrics-port $metricsPort \ --metrics-address 0.0.0.0 \ - --hash-sig-key-dir $configDir/hash-sig-keys \ $api_port_flag \ $attestation_committee_flag \ $aggregator_flag \ @@ -103,16 +101,14 @@ if [[ -n "${NLEAN_DEBUG_DUMP_OBSERVED_BLOCKS_DIR:-}" ]]; then fi node_docker="${nlean_docker_extra_env} ${nlean_docker_image} \ - --validator-config /config/validator-config.yaml \ + --custom-network-config-dir /config \ --node $item \ --data-dir /data \ - --network $nlean_network_name \ --node-key /config/$node_private_key_path \ --socket-port $quicPort \ --metrics $enable_metrics \ --metrics-port $metricsPort \ --metrics-address 0.0.0.0 \ - --hash-sig-key-dir /config/hash-sig-keys \ $api_port_flag \ $attestation_committee_flag \ $aggregator_flag \