diff --git a/.github/workflows/bolt_boost_ci.yml b/.github/workflows/bolt_boost_ci.yml index 3917ec64..b1859110 100644 --- a/.github/workflows/bolt_boost_ci.yml +++ b/.github/workflows/bolt_boost_ci.yml @@ -2,6 +2,9 @@ name: Bolt Boost CI on: push: + branches: + - unstable + - main paths: - "bolt-boost/**" pull_request: diff --git a/bolt-boost/Cargo.lock b/bolt-boost/Cargo.lock index 286d2595..5ee3d7de 100644 --- a/bolt-boost/Cargo.lock +++ b/bolt-boost/Cargo.lock @@ -1132,8 +1132,8 @@ dependencies = [ [[package]] name = "cb-common" -version = "0.3.0" -source = "git+https://github.com/commit-boost/commit-boost-client?tag=v0.3.0#d511c267243b3371f4d47604aebe6a20dbbd0e79" +version = "0.3.1" +source = "git+https://github.com/commit-boost/commit-boost-client?tag=v0.3.1#1dc63e2494a145718261a64baf90331adaef6d29" dependencies = [ "alloy", "axum", @@ -1163,8 +1163,8 @@ dependencies = [ [[package]] name = "cb-metrics" -version = "0.3.0" -source = "git+https://github.com/commit-boost/commit-boost-client?tag=v0.3.0#d511c267243b3371f4d47604aebe6a20dbbd0e79" +version = "0.3.1" +source = "git+https://github.com/commit-boost/commit-boost-client?tag=v0.3.1#1dc63e2494a145718261a64baf90331adaef6d29" dependencies = [ "axum", "cb-common", @@ -1177,8 +1177,8 @@ dependencies = [ [[package]] name = "cb-pbs" -version = "0.3.0" -source = "git+https://github.com/commit-boost/commit-boost-client?tag=v0.3.0#d511c267243b3371f4d47604aebe6a20dbbd0e79" +version = "0.3.1" +source = "git+https://github.com/commit-boost/commit-boost-client?tag=v0.3.1#1dc63e2494a145718261a64baf90331adaef6d29" dependencies = [ "alloy", "async-trait", diff --git a/bolt-boost/Cargo.toml b/bolt-boost/Cargo.toml index 56ea4701..5f6e758e 100644 --- a/bolt-boost/Cargo.toml +++ b/bolt-boost/Cargo.toml @@ -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" diff --git a/bolt-boost/src/server.rs b/bolt-boost/src/server.rs index 478cc3bb..3691775e 100644 --- a/bolt-boost/src/server.rs +++ b/bolt-boost/src/server.rs @@ -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,