Skip to content

Commit

Permalink
feat: manual check for content on our Frisbii
Browse files Browse the repository at this point in the history
Signed-off-by: Miroslav Bajtoš <[email protected]>
  • Loading branch information
bajtos committed Sep 10, 2024
1 parent 4809ecc commit 5df10d4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions manual-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@
//

import Spark, { getRetrievalUrl } from './lib/spark.js'
import { getMinerPeerId as defaultGetMinerPeerId } from './lib/miner-info.js'

// The task to check, replace with your own values
const cid = 'bafybeiepi56qxfcwqgpstg25r6sonig7y3pzd37lwambzmlcmbnujjri4a'
const minerId = 'f010479'
const cid = 'bafkreih25dih6ug3xtj73vswccw423b56ilrwmnos4cbwhrceudopdp5sq'
const minerId = 'f0frisbii'

const getMinerPeerId = (minerId) =>
minerId === 'f0frisbii'
? '12D3KooWC8gXxg9LoJ9h3hy3jzBkEAxamyHEQJKtRmAuBuvoMzpr'
: defaultGetMinerPeerId(minerId)

// Run the check
const spark = new Spark()
const spark = new Spark({getMinerPeerId})
const stats = { cid, minerId, indexerResult: null, statusCode: null, byteLength: 0 }
await spark.executeRetrievalCheck({ cid, minerId }, stats)
console.log('Measurement: %o', stats)
Expand Down

0 comments on commit 5df10d4

Please sign in to comment.