diff --git a/hotshot-task-impls/src/builder.rs b/hotshot-task-impls/src/builder.rs index f883eea7a..72c171c90 100644 --- a/hotshot-task-impls/src/builder.rs +++ b/hotshot-task-impls/src/builder.rs @@ -63,6 +63,7 @@ impl From for BuilderClientError { pub struct BuilderClient { /// Underlying surf_disco::Client for the legacy builder api client: Client, + base_url: Url, /// Marker for [`NodeType`] used here _marker: std::marker::PhantomData, } @@ -80,6 +81,7 @@ impl BuilderClient { client: Client::builder(url.clone()) .set_timeout(Some(Duration::from_secs(2))) .build(), + base_url: url, _marker: std::marker::PhantomData, } } @@ -160,8 +162,9 @@ pub mod v0_1 { "{LEGACY_BUILDER_MODULE}/claimheaderinput/{block_hash}/{view_number}/{sender}/{encoded_signature}" ); - let response = reqwest::get(endpoint).await; - println!("reqwest response: {:?}", response); + let ep = format!("{}/{}", self.base_url, endpoint); + let response = reqwest::get(ep.clone()).await; + println!("requested from {}: {:?}", ep, response); println!("querying {}", endpoint); self.client.get(endpoint).send().await.map_err(|err| {