Skip to content
This repository has been archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
fix: reinstates the non local block check in dht.provide (#1250)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw authored and daviddias committed Mar 14, 2018
1 parent aea69d3 commit 5b736a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/components/dht.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,10 @@ module.exports = (self) => {
if (err) {
return callback(err)
}
/* TODO reconsider this. go-ipfs provides anyway

if (!has) {
return callback(new Error('Not all blocks exist locally, can not provide'))
return callback(new Error('block(s) not found locally, cannot provide'))
}
*/

if (options.recursive) {
// TODO: Implement recursive providing
Expand Down

0 comments on commit 5b736a8

Please sign in to comment.