Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd: exit with validator index, allow BN URLs #3106

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

gsora
Copy link
Collaborator

@gsora gsora commented May 29, 2024

Allow specifying more than one beacon node to use with the --beacon-node-endpoints flag.

Users can now sign exits directly with a validator index rather than specifying its public key.

If both are specified, validator liveliness (i.e. whether or not the validator exists on the beacon chain) is not checked.

sign checks that the specified validator index exists in the cluster lock before proceeding.

category: feature
ticket: #3104

Closes #3104

Allow specifying more than one beacon node to use with the `--beacon-node-endpoints` flag.

Users can now sign exits directly with a validator index rather than specifying its public key.

If both are specified, validator index takes precedence.

`sign` checks that the specified validator index exists in the cluster lock before proceeding.
Copy link

codecov bot commented May 29, 2024

Codecov Report

Attention: Patch coverage is 62.50000% with 33 lines in your changes are missing coverage. Please review.

Project coverage is 56.80%. Comparing base (249e476) to head (0f3c88f).
Report is 2 commits behind head on main.

Files Patch % Lines
cmd/exit_sign.go 69.11% 19 Missing and 2 partials ⚠️
cmd/exit.go 37.50% 10 Missing ⚠️
cmd/exit_broadcast.go 50.00% 1 Missing ⚠️
cmd/exit_list.go 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3106      +/-   ##
==========================================
- Coverage   56.85%   56.80%   -0.06%     
==========================================
  Files         208      208              
  Lines       29148    29190      +42     
==========================================
+ Hits        16571    16580       +9     
- Misses      10740    10771      +31     
- Partials     1837     1839       +2     

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

@OisinKyne
Copy link
Contributor

OisinKyne commented May 29, 2024

Need to clarify what i mean here in more detail, but we need to check if this will work for stakewise exit prediction.

Update: Can --validator-index allow for the skipping of providing a --beacon-node-endpoints flag to charon exit sign? For dual reason.

  1. Easier for the user not to get a hold of a synced beacon node to partial sign
  2. Can be used to pre-predict an index that doesn't exist yet, but is needed for stakewise's activation process.

(Also asked Luke whether the API would have a problem with a single validator sending sigs for more than one index, he doesn't think so)

@gsora gsora changed the title cmd: allow signing exits with validator index, beacon node URLs rework cmd: sign exits with validator index, beacon node URLs rework May 29, 2024
@gsora gsora changed the title cmd: sign exits with validator index, beacon node URLs rework cmd: exit with validator index, allow BN URLs May 29, 2024
If both validator public key and index are provided, don't query the beacon node for validator liveliness (i.e. the validator has been created on the beacon chain).

Allows pre-signing exits for validator that are yet to be created, some third-parties need this functionality.
cmd/exit_sign.go Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented May 31, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@gsora gsora added the merge when ready Indicates bulldozer bot may merge when all checks pass label Jun 4, 2024
@obol-bulldozer obol-bulldozer bot merged commit 70e38cd into main Jun 4, 2024
12 checks passed
@obol-bulldozer obol-bulldozer bot deleted the gsora/exit-cli-improv branch June 4, 2024 14:06
KaloyanTanev pushed a commit that referenced this pull request Jun 5, 2024
Allow specifying more than one beacon node to use with the `--beacon-node-endpoints` flag.

Users can now sign exits directly with a validator index rather than specifying its public key.

If both are specified, validator liveliness (i.e. whether or not the validator exists on the beacon chain) is not checked.

`sign` checks that the specified validator index exists in the cluster lock before proceeding.


category: feature
ticket: #3104 

Closes #3104
obol-bulldozer bot pushed a commit that referenced this pull request Jun 5, 2024
- #3084
- #3092  
- #3098 
- #3099 
- #3100 
- #3106 
- #3110 
- #3111 
- #3114 
- #3118 

category: misc
ticket: #3103 

closes: #3103
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Presign Exit by validator index
4 participants