-
Notifications
You must be signed in to change notification settings - Fork 88
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
generate random relay key when none found #337
generate random relay key when none found #337
Conversation
} | ||
warn!("No relay secret key provided. A random key will be generated."); | ||
let secret_key = SecretKey::new(&mut rand::thread_rng()); | ||
hex::encode(secret_key.secret_bytes()) |
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.
Do not convert to string to convert back to BLSBlockSigner
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.
passing SecretKey
directly now
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 left a few notes.
Benchmark results for
|
Date (UTC) | 2025-01-06T08:32:25+00:00 |
Commit | 2e1d03cc7a2fe339b80caaff12735f07b3877f03 |
Base SHA | 026df71fdf2c8c6f6740682b6358d02f0e14bc09 |
Significant changes
Benchmark | Mean | Status |
---|---|---|
gather_nodes_clone | -16.46% | Performance has improved. |
gather_nodes_empty_account | 3.78% | Performance has degraded. |
π Summary
Generates a random relay secret key when none is set
Closes #333
π‘ Motivation and Context
β I have completed the following steps:
make lint
make test