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: build retrieval tasks from storage deals #4

Merged
merged 4 commits into from
Nov 14, 2023
Merged

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Nov 14, 2023

@bajtos
Copy link
Member Author

bajtos commented Nov 14, 2023

The outcome of running the scripts for 10k recent deals:

parse-ldn-deals

❯ node scripts/parse-ldn-deals.js
Finished after 0.1 seconds

Total deals:    10594n
LDN with Label: 7312n
Ratio:          69%

LDN deals were written to generated/ldn-deals.ndjson

build-retrieval-tasks

❯ node scripts/build-retrieval-tasks.js
((omitted a bunch of MaxListenersExceededWarning about too many abort listeners added to [AbortSignal]))
Finished in 1134.23 seconds

Total CIDs:    7312n
 - advertised: 3151n (43%)

Total tasks:   9905n
 - http        141n (1%)
 - bitswap     1696n (17%)
 - graphsync   8068n (81%)

Retrieval tasks were written to generated/retrieval-tasks.ndjson

@bajtos bajtos marked this pull request as ready for review November 14, 2023 15:36
@bajtos bajtos merged commit 076f70a into main Nov 14, 2023
@bajtos bajtos deleted the lookup-cid-contact branch November 14, 2023 15:37
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.

1 participant