Skip to content

Commit

Permalink
fix(sidecar): commit boost flag name
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevbirb committed Oct 7, 2024
1 parent 1d15944 commit b6e9587
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions bolt-sidecar/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"),
Expand Down Expand Up @@ -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());
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion bolt-sidecar/src/driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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?;
Expand Down

0 comments on commit b6e9587

Please sign in to comment.