Skip to content

Commit 5df10d4

Browse files
committed
feat: manual check for content on our Frisbii
Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
1 parent 4809ecc commit 5df10d4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

manual-check.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@
44
//
55

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

89
// The task to check, replace with your own values
9-
const cid = 'bafybeiepi56qxfcwqgpstg25r6sonig7y3pzd37lwambzmlcmbnujjri4a'
10-
const minerId = 'f010479'
10+
const cid = 'bafkreih25dih6ug3xtj73vswccw423b56ilrwmnos4cbwhrceudopdp5sq'
11+
const minerId = 'f0frisbii'
12+
13+
const getMinerPeerId = (minerId) =>
14+
minerId === 'f0frisbii'
15+
? '12D3KooWC8gXxg9LoJ9h3hy3jzBkEAxamyHEQJKtRmAuBuvoMzpr'
16+
: defaultGetMinerPeerId(minerId)
1117

1218
// Run the check
13-
const spark = new Spark()
19+
const spark = new Spark({getMinerPeerId})
1420
const stats = { cid, minerId, indexerResult: null, statusCode: null, byteLength: 0 }
1521
await spark.executeRetrievalCheck({ cid, minerId }, stats)
1622
console.log('Measurement: %o', stats)

0 commit comments

Comments
 (0)