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

fix(sidecar): commit boost flag rename #275

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix(sidecar): commit boost flag name
thedevbirb committed Oct 7, 2024
commit b6e9587514bdded896651dd2c61d12a8999a8a1e
6 changes: 3 additions & 3 deletions bolt-sidecar/src/config/mod.rs
Original file line number Diff line number Diff line change
@@ -111,7 +111,7 @@ pub struct Config {
/// The engine API url
pub engine_api_url: Url,
/// URL for the commit-boost sidecar
pub commit_boost_address: Option<String>,
pub commit_boost_url: Option<String>,
/// The JWT secret token to authenticate calls to the commit-boost
pub commit_boost_jwt_hex: Option<String>,
/// Private key to use for signing preconfirmation requests
@@ -141,7 +141,7 @@ impl Default for Config {
Self {
rpc_port: DEFAULT_RPC_PORT,
constraints_proxy_port: DEFAULT_CONSTRAINTS_PROXY_PORT,
commit_boost_address: None,
commit_boost_url: None,
commit_boost_jwt_hex: None,
constraints_url: "http://localhost:3030".parse().expect("Valid URL"),
beacon_api_url: "http://localhost:5052".parse().expect("Valid URL"),
@@ -216,7 +216,7 @@ impl TryFrom<Opts> for Config {
if let Some(commit_boost_url) = &opts.signing.commit_boost_url {
if let Ok(url) = Url::parse(commit_boost_url) {
if let Ok(socket_addrs) = url.socket_addrs(|| None) {
config.commit_boost_address = Some(socket_addrs[0].to_string());
config.commit_boost_url = Some(socket_addrs[0].to_string());
}
}
}
2 changes: 1 addition & 1 deletion bolt-sidecar/src/driver.rs
Original file line number Diff line number Diff line change
@@ -82,7 +82,7 @@ impl SidecarDriver<StateClient, CommitBoostSigner, CommitBoostSigner> {
let state_client = StateClient::new(cfg.execution_api_url.clone());

let commit_boost_signer = CommitBoostSigner::new(
cfg.commit_boost_address.clone().expect("CommitBoost URL must be provided"),
cfg.commit_boost_url.clone().expect("CommitBoost URL must be provided"),
&cfg.commit_boost_jwt_hex.clone().expect("CommitBoost JWT must be provided"),
)
.await?;