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

Commit

Permalink
feat: support for reconstructed CIDs of refs-local
Browse files Browse the repository at this point in the history
  • Loading branch information
AuHau committed Oct 8, 2019
1 parent e836aea commit 920edcf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SPEC/REFS.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ pull(

#### `refs.local`

> Output all local references (CIDs of all blocks in the blockstore)
> 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)
##### `ipfs.refs.local([callback])`

Expand Down
4 changes: 2 additions & 2 deletions src/files-regular/refs-local-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ module.exports = (createCommon, suiteName, ipfsRefsLocal, options) => {
expect(err).to.not.exist()

const cids = refs.map(r => r.ref)
expect(cids).to.include('QmVwdDCY4SPGVFnNCiZnX5CtzwWDn6kAM98JXzKxE3kCmn')
expect(cids).to.include('QmR4nFjTu18TyANgC65ArNWp5Yaab1gPzQ4D8zp7Kx3vhr')
expect(cids).to.include('bafybeidq65yuxlgtx6cdp242x7zda7ycdajyvgdnpxttqnr5va2k3aoine')
expect(cids).to.include('bafybeibiqjgj7hh63pwaupjoffmg523nvzwxzbtwpege6by2kfge7ocdwu')

done()
})
Expand Down

0 comments on commit 920edcf

Please sign in to comment.