We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1a0d91 commit a47bd99Copy full SHA for a47bd99
examples/store_big_data.js
@@ -259,7 +259,14 @@ async function main() {
259
260
console.log(`Storing DAG...`);
261
let { rootCid, dagBytes } = await buildUnixFSDagPB(chunks, 0xb220);
262
- let { cid } = await store(bulletinAPI, signers[0].signer, dagBytes);
+ let { cid } = await store(
263
+ bulletinAPI,
264
+ signers[0].signer,
265
+ dagBytes,
266
+ undefined,
267
268
+ TX_MODE_FINALIZED_BLOCK
269
+ );
270
console.log(`Downloading...${cid} / ${rootCid}`);
271
let downloadedContent = await fetchCid(HTTP_IPFS_API, rootCid);
272
console.log(`✅ Reconstructed file size: ${downloadedContent.length} bytes`);
0 commit comments