(&self)
| 305 | } |
| 306 | |
| 307 | pub fn to_cc_event_log(&self) -> Result<Vec<TdxEvent>> { |
| 308 | self.event_logs |
| 309 | .iter() |
| 310 | .filter(|log| log.imr_index > 0) // GCP fills some IMRs starting from 0 |
| 311 | .cloned() |
| 312 | .map(TdxEvent::try_from) |
| 313 | .collect() |
| 314 | } |
| 315 | } |
| 316 | |
| 317 | fn parse_spec_id_event_log<I: scale::Input>( |
no outgoing calls