Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions benches/file_db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ pub fn load_checkpoint(c: &mut Criterion) {
let db = FileDB::new(&config).unwrap();
let written_checkpoint =
b256!("c7fc7b2f4b548bfc9305fa80bc1865ddc6eea4557f0a80507af5dc34db7bd9ce");
db.save_checkpoint(written_checkpoint.clone()).unwrap();
db.save_checkpoint(written_checkpoint).unwrap();

// Then read from the db
b.iter(|| {
let checkpoint = db.load_checkpoint().unwrap();
assert_eq!(checkpoint, written_checkpoint.clone());
assert_eq!(checkpoint, written_checkpoint);
})
});
}
2 changes: 1 addition & 1 deletion ethereum/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ impl<S: ConsensusSpec, R: ConsensusRpc<S>, DB: Database> ConsensusClient<S, R, D

save_new_checkpoints(
checkpoint_recv.clone(),
db.clone(),
db,
initial_checkpoint,
shutdown_recv,
);
Expand Down
2 changes: 1 addition & 1 deletion tests/rpc_equivalence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ async fn setup() -> (
let port = get_available_port();
let helios_client = EthereumClientBuilder::new()
.network(Network::Mainnet)
.verifiable_api(&format!("http://localhost:{api_port}"))
.verifiable_api(format!("http://localhost:{api_port}"))
.unwrap()
.consensus_rpc(consensus_rpc)
.unwrap()
Expand Down
2 changes: 1 addition & 1 deletion verifiable-api/client/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ async fn handle_response<T: DeserializeOwned>(response: Response) -> Result<T> {
Ok(serde_json::from_slice(&bytes)?)
} else {
let error_response = response.json::<ErrorResponse>().await?;
Err(eyre!(error_response.error.to_string()))
Err(eyre!(error_response.error))
}
}

Expand Down
Loading