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: use rollup indexes #46

Merged
merged 13 commits into from
Jun 9, 2023
Merged

feat: use rollup indexes #46

merged 13 commits into from
Jun 9, 2023

Conversation

alanshaw
Copy link
Member

@alanshaw alanshaw commented Jun 5, 2023

This PR allows Freeway to use rollup indexes. Rollups are multi-index indexes (see https://github.com/alanshaw/cardex#multi-index-index) that specify which blocks are in which CAR file(s) for a given DAG.

Freeway checks DUDEWHERE for a rollup index at bafyROOT/.rollup.idx. If it finds one, it'll use it (and no other indexes) to obtain index informations for all the blocks.

@alanshaw alanshaw requested review from olizilla and vasco-santos June 5, 2023 16:19
Base automatically changed from feat/upgrade-cardex to main June 5, 2023 16:58
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.

Code looks great to me! It would be nice to have better test vector for it

test/index.spec.js Show resolved Hide resolved
@alanshaw alanshaw merged commit 8e8c3a4 into main Jun 9, 2023
@alanshaw alanshaw deleted the feat/use-rollup-indexes branch June 9, 2023 12:18
alanshaw pushed a commit that referenced this pull request Jun 9, 2023
🤖 I have created a release *beep* *boop*
---


##
[2.4.0](v2.3.0...v2.4.0)
(2023-06-09)


### Features

* use rollup indexes
([#46](#46))
([8e8c3a4](8e8c3a4))

---
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.

2 participants