Skip to content

cmd: improve split keys behavior#4577

Open
pinebit wants to merge 2 commits into
mainfrom
pinebit/split-keys-fixes
Open

cmd: improve split keys behavior#4577
pinebit wants to merge 2 commits into
mainfrom
pinebit/split-keys-fixes

Conversation

@pinebit

@pinebit pinebit commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

Improve charon create cluster --split-existing-keys behavior:

  • Load keystores in strict file index order when distinct fee recipient or withdrawal addresses are provided (via flags or a definition file), so keystore-N.json is paired with the Nth per-validator addresses. Previously only multiple --withdrawal-addresses triggered ordered loading; multiple fee recipients or a definition file with distinct addresses paired keys with addresses nondeterministically.
  • Correct the --split-existing-keys help text: deposit data files are re-created in split mode using the provided withdrawal addresses, and must not be submitted for validators that are already active. The flag previously claimed deposit data is not re-created.
  • Use American English spelling in the split keys warning output ("finalized").

Documentation is updated accordingly in ObolNetwork/obol-gitbook#164.

category: bug
ticket: none

🤖 Generated with Claude Code

@codecov

codecov Bot commented Jul 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.33333% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 57.21%. Comparing base (6f0d288) to head (d6cdc51).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
cmd/createcluster.go 83.33% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4577      +/-   ##
==========================================
- Coverage   57.21%   57.21%   -0.01%     
==========================================
  Files         245      245              
  Lines       33449    33455       +6     
==========================================
+ Hits        19139    19142       +3     
+ Misses      11886    11884       -2     
- Partials     2424     2429       +5     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Restore deposit data creation when splitting existing keys and instead
document the behavior in the --split-existing-keys flag help: deposit
data files are re-created using the provided withdrawal addresses and
must not be submitted for validators that are already active.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Jul 3, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant