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

Commit

Permalink
Merge pull request #72 from gordonwritescode/master
Browse files Browse the repository at this point in the history
Pre-sign contract publications
  • Loading branch information
gordonwritescode committed May 23, 2016
2 parents 14e75d1 + ee0d446 commit 117d4f5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/server/routes/frames.js
Expand Up @@ -123,6 +123,8 @@ FramesRouter.prototype.addShardToFrame = function(req, res, next) {
audit_count: req.body.challenges.length
});

contract.sign('renter', self.network._keypair.getPrivateKey());

self._getContractForShard(contract, audit, function(err, farmer, contr) {
if (err) {
return next(new errors.InternalError(err.message));
Expand Down
2 changes: 1 addition & 1 deletion lib/storage/models/usernonce.js
Expand Up @@ -26,7 +26,7 @@ var UserNonce = new mongoose.Schema({

UserNonce.plugin(SchemaOptions);

UserNonce.index({ user: 1, nonce: 1 }, {unique: true});
UserNonce.index({ user: 1, nonce: 1 }, { unique: true });

module.exports = function(connection) {
return connection.model('UserNonce', UserNonce);
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "storj-bridge",
"version": "0.7.1",
"version": "0.7.2",
"description": "Access the Storj network using a simple REST API.",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit 117d4f5

Please sign in to comment.