Helper to debug cache results.
(result: Result<(), archive::Error>, round: Round, name: &str)
| 305 | epoch: Epoch, |
| 306 | height: Height, |
| 307 | commitment: B::Digest, |
| 308 | block: B, |
| 309 | ) { |
| 310 | let Some(cache) = self.get_or_init_epoch(epoch).await else { |
| 311 | return; |
| 312 | }; |
| 313 | if cache |
| 314 | .certified_blocks |
| 315 | .as_ref() |
| 316 | .expect("certified archive unavailable") |
| 317 | .has_at(height.get(), &commitment) |
| 318 | .await |
| 319 | .expect("failed to check certified block") |
| 320 | { |
| 321 | return; |
| 322 | } |
nothing calls this directly
no outgoing calls
no test coverage detected