Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

Commit

Permalink
Temporarily removed on shardUploaded trigger from client
Browse files Browse the repository at this point in the history
  • Loading branch information
aleitner committed Oct 3, 2016
1 parent d86d0b3 commit 234220a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 33 deletions.
32 changes: 0 additions & 32 deletions app/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 234220a

Please sign in to comment.