From 234220a68d5d1a4380e02c1175a6090baf501d09 Mon Sep 17 00:00:00 2001 From: aleitner Date: Mon, 3 Oct 2016 14:29:17 -0400 Subject: [PATCH] Temporarily removed on shardUploaded trigger from client --- app/client.js | 32 -------------------------------- app/package.json | 2 +- 2 files changed, 1 insertion(+), 33 deletions(-) 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",