Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into hm/upgrade-fvm
Browse files Browse the repository at this point in the history
  • Loading branch information
hanabi1224 committed Nov 28, 2024
2 parents f8597a6 + 0fc577e commit 926a580
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/networks/actors_bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,7 @@ pub async fn generate_actor_bundle(output: &Path) -> anyhow::Result<()> {
blocks.dedup();

for block in blocks.iter() {
ensure!(
block.valid(),
"sources contain an invalid block, cid {}",
block.cid
)
block.validate()?;
}

stream::iter(blocks)
Expand Down
4 changes: 2 additions & 2 deletions src/utils/db/car_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ mod tests {
let blocks: Vec<CarBlock> = stream.try_collect().await.unwrap();
assert_eq!(blocks.len(), 1207);
for block in blocks {
assert!(block.valid());
block.validate().unwrap();
}
}

Expand All @@ -255,7 +255,7 @@ mod tests {
let blocks: Vec<CarBlock> = stream.try_collect().await.unwrap();
assert_eq!(blocks.len(), 1222);
for block in blocks {
assert!(block.valid());
block.validate().unwrap();
}
}
}

0 comments on commit 926a580

Please sign in to comment.