Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Commit 0abb4a5

Browse files
committed
feat: support for reconstructed CIDs of refs-local
Related to ipfs/js-ipfs#2415
1 parent e836aea commit 0abb4a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SPEC/REFS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ pull(
102102

103103
#### `refs.local`
104104

105-
> Output all local references (CIDs of all blocks in the blockstore)
105+
> Output all local references (CIDs of all blocks in the blockstore. CIDs are reconstructed, hence they might not match the CIDs under the blocks were originally stored)
106106
107107
##### `ipfs.refs.local([callback])`
108108

src/files-regular/refs-local-tests.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ module.exports = (createCommon, suiteName, ipfsRefsLocal, options) => {
4949
expect(err).to.not.exist()
5050

5151
const cids = refs.map(r => r.ref)
52-
expect(cids).to.include('QmVwdDCY4SPGVFnNCiZnX5CtzwWDn6kAM98JXzKxE3kCmn')
53-
expect(cids).to.include('QmR4nFjTu18TyANgC65ArNWp5Yaab1gPzQ4D8zp7Kx3vhr')
52+
expect(cids).to.include('bafkreicuinkdxczmxol5edpb2jumkbkvtoehj6qixz6yvvxgstp3cr5hey')
53+
expect(cids).to.include('bafkreigm5vpfwjayhkmp7d3gc6hwj4c536ns6ajxi3cyi3uulta45rpyzy')
5454

5555
done()
5656
})

0 commit comments

Comments
 (0)