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

chore(deps): bump cb-pbs from v0.3.0 to v0.3.1 in /bolt-boost #439

Merged
merged 3 commits into from
Dec 4, 2024
Merged
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
3 changes: 3 additions & 0 deletions .github/workflows/bolt_boost_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Bolt Boost CI

on:
push:
branches:
- unstable
- main
paths:
- "bolt-boost/**"
pull_request:
Expand Down
12 changes: 6 additions & 6 deletions bolt-boost/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions bolt-boost/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ alloy = { version = "0.3.6", features = [
alloy-rlp = "0.3.8"

# commit-boost
cb-common = { git = "https://github.com/commit-boost/commit-boost-client", tag = "v0.3.0" }
cb-pbs = { git = "https://github.com/commit-boost/commit-boost-client", tag = "v0.3.0" }
cb-common = { git = "https://github.com/commit-boost/commit-boost-client", tag = "v0.3.1" }
cb-pbs = { git = "https://github.com/commit-boost/commit-boost-client", tag = "v0.3.1" }

# other
rand = "0.8.5"
Expand Down
6 changes: 5 additions & 1 deletion bolt-boost/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,11 @@ async fn send_one_get_header(
return Ok((start_request_time, None));
}

let get_header_response: GetHeaderWithProofsResponse = serde_json::from_slice(&response_bytes)?;
let get_header_response: GetHeaderWithProofsResponse = serde_json::from_slice(&response_bytes)
.map_err(|e| PbsError::JsonDecode {
err: e,
raw: String::from_utf8(response_bytes.to_vec()).unwrap_or("Invalid UTF-8".to_string()),
})?;

debug!(
latency = ?request_latency,
Expand Down
Loading