Skip to content

Commit

Permalink
Merge pull request #175 from NethermindEth/mu/fix-mev-boost
Browse files Browse the repository at this point in the history
Fix constraints rpc call
  • Loading branch information
mikhailUshakoff authored Oct 4, 2024
2 parents 81c815b + 676b94d commit 7a66326
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Node/src/mev_boost/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl MevBoost {
async fn post_constraints(&self, params: Value) -> Result<Value, Error> {
let client = Client::new();
let response = client
.post(self.url.clone())
.post(self.url.clone() + "/eth/v1/builder/constraints")
.json(&params)
.send()
.await
Expand Down
2 changes: 1 addition & 1 deletion Node/src/mev_boost/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ mod tests {
.unwrap(),
);
// Create mev-boost
let mev_boost = MevBoost::new(" http://localhost:8080/eth/v1/builder/constraints", 123);
let mev_boost = MevBoost::new(" http://localhost:8080", 123);
// Some random constraints
let constraint1 = generate_random_vec_with_random_size(50, 200);
let constraint2 = generate_random_vec_with_random_size(50, 200);
Expand Down

0 comments on commit 7a66326

Please sign in to comment.