Skip to content

Commit 0844aff

Browse files
committed
New e2e test and fixes
1 parent eb9bb79 commit 0844aff

14 files changed

Lines changed: 525 additions & 738 deletions

File tree

.claude/skills/add-validators/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Add new validators to an existing Charon distributed validator cluster. All oper
1212

1313
Before running, verify:
1414
1. `.env` file exists with `NETWORK` and `VC` variables set
15-
2. `.charon/cluster-lock.json` exists
15+
2. `.charon/cluster-lock.json` and `.charon/deposit-data*.json` exist
1616
3. Docker is running
1717
4. `jq` is installed
1818

.claude/skills/replace-operator/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ user-invokable: true
66

77
# Replace Operator
88

9-
Replace a single operator in a Charon cluster with a new one. This is a non-P2P local operation (no coordinated ceremony required).
9+
Replace a single operator in a Charon cluster with a new one. Remaining operators run a `charon alpha edit replace-operator` ceremony (P2P via relay), then share the new cluster-lock with the new operator.
1010

1111
## Prerequisites
1212

scripts/edit/add-operators/existing-operator.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ log_step "Step 2: Running add-operators ceremony..."
201201

202202
echo ""
203203
log_warn "╔════════════════════════════════════════════════════════════════╗"
204-
log_warn "║ IMPORTANT: ALL operators must run this ceremony simultaneously "
204+
log_warn "║ IMPORTANT: ALL operators must run this ceremony simultaneously║"
205205
log_warn "╚════════════════════════════════════════════════════════════════╝"
206206
echo ""
207207

@@ -302,8 +302,8 @@ log_info " - New cluster configuration installed in: .charon/"
302302
log_info " - Anti-slashing database updated and imported"
303303
echo ""
304304
log_warn "╔════════════════════════════════════════════════════════════════╗"
305-
log_warn "║ IMPORTANT: Wait at least 2 epochs (~13 min) before starting ║"
306-
log_warn "║ containers to avoid slashing risk from duplicate attestations║"
305+
log_warn "║ IMPORTANT: Wait at least 2 epochs (~13 min) before starting "
306+
log_warn "║ containers to avoid slashing risk from duplicate attestations "
307307
log_warn "╚════════════════════════════════════════════════════════════════╝"
308308
echo ""
309309
log_info "When ready, start containers with:"

scripts/edit/add-operators/new-operator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ log_step "Step 2: Running add-operators ceremony..."
279279

280280
echo ""
281281
log_warn "╔════════════════════════════════════════════════════════════════╗"
282-
log_warn "║ IMPORTANT: ALL operators must run this ceremony simultaneously "
282+
log_warn "║ IMPORTANT: ALL operators must run this ceremony simultaneously║"
283283
log_warn "╚════════════════════════════════════════════════════════════════╝"
284284
echo ""
285285

scripts/edit/add-validators/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This script helps operators add new validators to an existing distributed valida
1616
## Prerequisites
1717

1818
- `.env` file with `NETWORK` and `VC` variables set
19-
- `.charon` directory with `cluster-lock.json`
19+
- `.charon` directory with `cluster-lock.json` and `deposit-data*.json` files
2020
- Docker running
2121
- `jq` installed
2222
- **All operators must participate in the ceremony**

scripts/edit/add-validators/add-validators.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ log_step "Step 1: Running add-validators ceremony..."
220220

221221
echo ""
222222
log_warn "╔════════════════════════════════════════════════════════════════╗"
223-
log_warn "║ IMPORTANT: ALL operators must run this ceremony simultaneously "
223+
log_warn "║ IMPORTANT: ALL operators must run this ceremony simultaneously║"
224224
log_warn "╚════════════════════════════════════════════════════════════════╝"
225225
echo ""
226226

scripts/edit/recreate-private-keys/recreate-private-keys.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ log_step "Step 2: Running recreate-private-keys ceremony..."
181181

182182
echo ""
183183
log_warn "╔════════════════════════════════════════════════════════════════╗"
184-
log_warn "║ IMPORTANT: ALL operators must run this ceremony simultaneously "
184+
log_warn "║ IMPORTANT: ALL operators must run this ceremony simultaneously║"
185185
log_warn "╚════════════════════════════════════════════════════════════════╝"
186186
echo ""
187187

@@ -278,8 +278,8 @@ log_info " - New keys installed in: .charon/"
278278
log_info " - Anti-slashing database updated and imported"
279279
echo ""
280280
log_warn "╔════════════════════════════════════════════════════════════════╗"
281-
log_warn "║ IMPORTANT: Wait at least 2 epochs (~13 min) before starting ║"
282-
log_warn "║ containers to avoid slashing risk from duplicate attestations║"
281+
log_warn "║ IMPORTANT: Wait at least 2 epochs (~13 min) before starting "
282+
log_warn "║ containers to avoid slashing risk from duplicate attestations "
283283
log_warn "╚════════════════════════════════════════════════════════════════╝"
284284
echo ""
285285
log_info "When ready, start containers with:"

scripts/edit/remove-operators/remaining-operator.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ log_step "Step 2: Running remove-operators ceremony..."
233233

234234
echo ""
235235
log_warn "╔════════════════════════════════════════════════════════════════╗"
236-
log_warn "║ IMPORTANT: ALL participating operators must run simultaneously "
236+
log_warn "║ IMPORTANT: ALL participating operators must run simultaneously║"
237237
log_warn "╚════════════════════════════════════════════════════════════════╝"
238238
echo ""
239239

@@ -347,8 +347,8 @@ log_info " - New cluster configuration installed in: .charon/"
347347
log_info " - Anti-slashing database updated and imported"
348348
echo ""
349349
log_warn "╔════════════════════════════════════════════════════════════════╗"
350-
log_warn "║ IMPORTANT: Wait at least 2 epochs (~13 min) before starting ║"
351-
log_warn "║ containers to avoid slashing risk from duplicate attestations║"
350+
log_warn "║ IMPORTANT: Wait at least 2 epochs (~13 min) before starting "
351+
log_warn "║ containers to avoid slashing risk from duplicate attestations "
352352
log_warn "╚════════════════════════════════════════════════════════════════╝"
353353
echo ""
354354
log_info "When ready, start containers with:"

scripts/edit/remove-operators/removed-operator.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ log_step "Step 1: Running remove-operators ceremony..."
209209

210210
echo ""
211211
log_warn "╔════════════════════════════════════════════════════════════════╗"
212-
log_warn "║ IMPORTANT: ALL participating operators must run simultaneously "
212+
log_warn "║ IMPORTANT: ALL participating operators must run simultaneously║"
213213
log_warn "╚════════════════════════════════════════════════════════════════╝"
214214
echo ""
215215

scripts/edit/replace-operator/remaining-operator.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ log_info " - New cluster-lock installed in: .charon/cluster-lock.json"
298298
log_info " - Anti-slashing database updated and imported"
299299
echo ""
300300
log_warn "╔════════════════════════════════════════════════════════════════╗"
301-
log_warn "║ IMPORTANT: Wait at least 2 epochs (~13 min) before starting ║"
302-
log_warn "║ containers to avoid slashing risk from duplicate attestations║"
301+
log_warn "║ IMPORTANT: Wait at least 2 epochs (~13 min) before starting "
302+
log_warn "║ containers to avoid slashing risk from duplicate attestations "
303303
log_warn "╚════════════════════════════════════════════════════════════════╝"
304304
echo ""
305305
log_info "When ready, start containers with:"

0 commit comments

Comments
 (0)