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

feat: publish index claim #1487

Merged
merged 4 commits into from
Jun 7, 2024
Merged

feat: publish index claim #1487

merged 4 commits into from
Jun 7, 2024

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Jun 4, 2024

This PR updates the index/add handler to publish an index claim for the added index.

Reading an index from the index claim allows freeway and hoverboard to serve blocks from all of the shards without having to request a location claim for each block.

refs storacha-network/blob-fetcher#10

@alanshaw alanshaw marked this pull request as ready for review June 6, 2024 11:42
Copy link
Contributor

@vasco-santos vasco-santos left a comment

Choose a reason for hiding this comment

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

LGTM

packages/upload-api/test/handlers/index.js Show resolved Hide resolved
packages/upload-api/src/index/add.js Outdated Show resolved Hide resolved
@alanshaw alanshaw merged commit 237b0c6 into main Jun 7, 2024
15 checks passed
@alanshaw alanshaw deleted the feat/publish-index-claim branch June 7, 2024 09:45
alanshaw pushed a commit that referenced this pull request Jun 10, 2024
🤖 I have created a release *beep* *boop*
---


##
[18.0.0](upload-api-v17.1.0...upload-api-v18.0.0)
(2024-06-07)


### ⚠ BREAKING CHANGES

* `AllocationsStorage` and `BlobsStorage` methods not take
`MultihashDigest` types instead of `Uint8Array`s.

### Features

* publish index claim
([#1487](#1487))
([237b0c6](237b0c6))


### Fixes

* stop writing to DUDEWHERE
([#1500](#1500))
([cf0a1d6](cf0a1d6))
* use MultihashDigest type in stores
([#1474](#1474))
([6c6a3bd](6c6a3bd))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants