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(iroh-bytes): use latest bao tree #2101

Merged
merged 1 commit into from
Mar 20, 2024
Merged

Conversation

rklaehn
Copy link
Contributor

@rklaehn rklaehn commented Mar 20, 2024

Description

Use the latest version of bao-tree that has some bugfixes and a new validate fn.

Notes & open questions

Due to the bugfix this means that it is no longer compatible with the previous version of iroh-bytes in some rare circumstances involving resume.

We would therefore have to increase the iroh-bytes APLN before the next release.

Change checklist

  • Self-review.
  • Documentation updates if relevant.
  • Tests if relevant.

@rklaehn rklaehn requested a review from dignifiedquire March 20, 2024 10:12
@rklaehn rklaehn changed the base branch from main to better-shutdown March 20, 2024 10:13
@@ -183,12 +183,6 @@ impl SizeInfo {

/// Persist into a file where each chunk has its own slot.
fn persist(&self, mut target: impl WriteAt) -> io::Result<()> {
if self.offset & ((IROH_BLOCK_SIZE.bytes() as u64) - 1) != 0 {
return Err(io::Error::new(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test does not really make sense. It is perfectly fine to get sub chunk group data, e.g. if you request 1 chunk.

@rklaehn rklaehn merged commit 957dbd0 into better-shutdown Mar 20, 2024
19 checks passed
@rklaehn rklaehn deleted the new-bao-tree branch March 20, 2024 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants