-
Notifications
You must be signed in to change notification settings - Fork 793
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
feat: presign for validator account #6747
base: unstable
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR! I have tested it and the feature is working. I have left some comments.
The CI check on formatting failed, also it would be great if you can sign the CLA.
I think it will also be nice to have a note highlighting the feature in the documentation, maybe before this section: https://lighthouse-book.sigmaprime.io/voluntary-exit.html#initiating-a-voluntary-exit
Thanks!
eprintln!( | ||
"Publishing a voluntary exit for validator: {} \n", | ||
keypair.pk | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let string_output = serde_json::to_string_pretty(&signed_voluntary_exit) | ||
.map_err(|e| format!("Unable to convert to JSON: {}", e))?; | ||
|
||
println!("{}", string_output); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While working on #6612 , initially I also printed out the signature. But then I realise it probably isn't much useful in practice - if users want to pre-sign an exit, they probably want the signature saved to a file. So I modified in this commit in that PR:
5a4f928
We can hear from others about this and edit accordingly.
@@ -74,6 +76,15 @@ pub fn cli_app() -> Command { | |||
.action(ArgAction::SetTrue) | |||
.help_heading(FLAG_HEADER) | |||
) | |||
.arg( | |||
Arg::new(PRESIGN) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have changed the flag name in #6612 to --presign
as per the comment: #6612 (comment)
So please ignore the above
Issue Addressed
#6746
Proposed Changes
Add a --presign flag to emit the json output to stdout instead of publishing the exit
Additional Info
The validator-manager is also a surface area to support via the http client interface