You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add checkpoint-sync-url and restart-client flags (blockblaz#116)
* feat: add isAggregator flag to validator configuration
Add support for configuring nodes as aggregators through validator-config.yaml.
This allows selective designation of nodes to perform aggregation duties by
setting isAggregator: true in the validator configuration.
Changes:
- Add isAggregator field (default: false) to all validators in both local and ansible configs
- Update parse-vc.sh to extract and export isAggregator flag
- Modify all client command scripts to pass --is-aggregator flag when enabled
- Add isAggregator status to node information output
* Add checkpoint-sync-url and restart-client flags for all clients
* Add log clarifying --restart-client requires --checkpoint-sync-url
* Update default checkpoint-sync-url to include /lean/v0/states/finalized path
* Fix Ansible recursion error for --restart-client with ansible deployment
- Pass restart nodes (spin_nodes) to run-ansible.sh when using --restart-client
- Remove recursive node_names definition in site.yml that caused max recursion depth
- Add skip_genesis support for checkpoint-sync restarts (skip genesis generation)
* Expand checkpoint sync documentation in README
Copy file name to clipboardExpand all lines: README.md
+38Lines changed: 38 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -139,6 +139,44 @@ Grafana is started with the two pre-provisioned dashboards from [leanMetrics](ht
139
139
- On Ctrl+C cleanup, the metrics stack is stopped automatically
140
140
141
141
Note: Client metrics endpoints are always enabled regardless of this flag.
142
+
12.`--checkpoint-sync-url` specifies the URL to fetch finalized checkpoint state from for checkpoint sync. Default: `https://leanpoint.leanroadmap.org/lean/v0/states/finalized`. Only used when `--restart-client` is specified.
143
+
13.`--restart-client` comma-separated list of client node names (e.g., `zeam_0,ream_0`). When specified, those clients are stopped, their data cleared, and restarted using checkpoint sync. Genesis is skipped. Use with `--checkpoint-sync-url` to override the default URL.
144
+
145
+
### Checkpoint sync
146
+
147
+
Checkpoint sync lets you restart clients by syncing from a remote checkpoint instead of from genesis. This is useful for joining an existing network (e.g., leanpoint mainnet) without replaying the full chain.
> **Note:** All clients accept `--checkpoint-sync-url`. Client implementations may use different parameter names internally; update client-cmd scripts if parameters change.
0 commit comments