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

generate random relay key when none found #337

Merged

Conversation

faheelsattar
Copy link
Contributor

πŸ“ Summary

Generates a random relay secret key when none is set
Closes #333

πŸ’‘ Motivation and Context


βœ… I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

}
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())
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

passing SecretKey directly now

Copy link
Contributor

@ferranbt ferranbt left a 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.

Copy link

github-actions bot commented Jan 4, 2025

Benchmark results for 2e1d03c

Report: https://flashbots-rbuilder-ci-stats.s3.us-east-2.amazonaws.com/benchmark/2e1d03c-026df71/report/index.html

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.

@faheelsattar faheelsattar requested a review from ferranbt January 5, 2025 09:48
@ferranbt ferranbt merged commit f13281a into flashbots:develop Jan 6, 2025
5 checks passed
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.

Generate a random relay key if none found
2 participants