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: index sample command #432

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

feat: index sample command #432

wants to merge 1 commit into from

Conversation

LexLuthr
Copy link
Contributor

@LexLuthr LexLuthr commented Mar 5, 2025

The PR adds a new cli command to Curio. It fetches some random CIDs from the indexed piece for any sampling needs.

# curio cli --machine 172.20.0.4:12300 index-sample baga6ea4seaqfu34hobrswd6icu5mmfckr6vs4ki54n7rtzuunsdtj3pnstffeoq
remote node version: [1 24 5]
Multihash HEX                                                         Multihash B58                                   CID v1                                                       
1220bb5ec163482b437a04097f4ace29e0d90a5844ddb0ec3e378679b4177e0d13bd  Qmax4kXGccJUUMMQ4X7KaZGEQLvcgaJxdyxg3wttGcXtEY  bafybeif3l3awgsblin5aicl7jlhctygzbjmejxnq5q7dpbtzwqlx4ditxu  
1220f0891135e2eae25ef88ffae3b303c4112d81c9820c6dc53136be65c226382221  QmeXbnC1h3t5VWgP6aL2nsVfEZDHcGjysgh8ohqgW8u5Ep  bafybeihqreitlyxk4jpprd724ozqhrarfwa4taqmnxctcnv6mxbcmobcee  
root@0a2a48a645e9:/app# curio cli --machine 172.20.0.4:12300 index-sample --json baga6ea4seaqfu34hobrswd6icu5mmfckr6vs4ki54n7rtzuunsdtj3pnstffeoq
remote node version: [1 24 5]
{
  "1220bb5ec163482b437a04097f4ace29e0d90a5844ddb0ec3e378679b4177e0d13bd": {
    "b58": "Qmax4kXGccJUUMMQ4X7KaZGEQLvcgaJxdyxg3wttGcXtEY",
    "cid": "bafybeif3l3awgsblin5aicl7jlhctygzbjmejxnq5q7dpbtzwqlx4ditxu"
  },
  "1220f0891135e2eae25ef88ffae3b303c4112d81c9820c6dc53136be65c226382221": {
    "b58": "QmeXbnC1h3t5VWgP6aL2nsVfEZDHcGjysgh8ohqgW8u5Ep",
    "cid": "bafybeihqreitlyxk4jpprd724ozqhrarfwa4taqmnxctcnv6mxbcmobcee"
  }
}

@LexLuthr LexLuthr requested a review from magik6k March 5, 2025 18: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