Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Commit

Permalink
Updates README.
Browse files Browse the repository at this point in the history
  • Loading branch information
hackergrrl committed Apr 15, 2016
1 parent 94d0b12 commit 560497f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,13 @@ Asynchronously adds an array of block instances to the underlying repo.
#### bs.getBlock(multihash, callback(err, block))

Asynchronously returns the block whose content multihash matches `multihash`.
Returns an error (`err.code === 'ENOENT'`) if the block does not exist.

#### bs.getBlocks(multihashes, callback(err, blocks))

Asynchronously returns the blocks whose content multihashes match the array
`multihashes`.
Returns an error (`err.code === 'ENOENT'`) if *any* the blocks do not exist.

*Does not guarantee atomicity.*

Expand Down

0 comments on commit 560497f

Please sign in to comment.