diff --git a/app/client.js b/app/client.js index cba0f0f..c77b769 100644 --- a/app/client.js +++ b/app/client.js @@ -315,38 +315,6 @@ var main = new Vue({ farmer.join(function(err) { self.transitioning = false; - farmer.dataChannelServer.on('shardUploaded', function(item, contact) { - console.log(JSON.parse(JSON.stringify(item))); - var message = new storj.deps.kad.Message( - { - method: 'TRIGGER', - params: { - behavior: 'ProveUploadReceipt', - contents: { - item: item.hash - // rmd160sha265: storj.utils.rmd160sha256(item, 'hex'), - // sha1whirlpool: storj.utils.sha1whirlpool(item, 'hex') - } - }, - contact: { - address: tab.network.hostname, - port: tab.network.port, - nodeID: farmer.contact.nodeID, - protocol: storj.version.protocol - }, - } - ); - - farmer.transport.send(contact, message, function(err, response) { - if (err) { - console.log(err.message); - logger.error(err.message); - } - - console.log(response); - }); - }); - if (self.userdata.appSettings.reportTelemetry) { self.startReportingTelemetry(tab); } diff --git a/app/package.json b/app/package.json index 8b57cd1..e504351 100644 --- a/app/package.json +++ b/app/package.json @@ -28,7 +28,7 @@ "myspeed": "^1.0.1", "request": "^2.63.0", "semver": "^5.1.0", - "storj-lib": "*", + "storj-lib": "^4.0.0", "storj-telemetry-reporter": "Storj/telemetry-reporter", "untildify": "^2.1.0", "vue": "^1.0.10",