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

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: storj-archived/storjshare-daemon
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.1.0
Choose a base ref
...
head repository: storj-archived/storjshare-daemon
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Sep 29, 2017

  1. Copy the full SHA
    98ee3b5 View commit details
  2. Merge pull request #263 from AlexeyALeonov/patch-1

    LTS version of the Node.js
    braydonf authored Sep 29, 2017
    Copy the full SHA
    3b92e07 View commit details

Commits on Oct 7, 2017

  1. Copy the full SHA
    68d8cb1 View commit details

Commits on Oct 10, 2017

  1. Merge pull request #270 from littleskunk/alloc

    switch from offer to alloc counter
    braydonf authored Oct 10, 2017
    Copy the full SHA
    069e330 View commit details

Commits on Oct 18, 2017

  1. Bump storj-lib

    braydonf committed Oct 18, 2017
    Copy the full SHA
    ad73a36 View commit details
  2. Merge pull request #275 from braydonf/master

    Bump storj-lib
    braydonf authored Oct 18, 2017
    Copy the full SHA
    8d5185a View commit details

Commits on Oct 19, 2017

  1. Copy the full SHA
    90ea262 View commit details

Commits on Oct 25, 2017

  1. Fix share status when stopped.

    him2 committed Oct 25, 2017
    Copy the full SHA
    0839883 View commit details
  2. Update dependencies

    braydonf committed Oct 25, 2017
    Copy the full SHA
    79a0d42 View commit details
  3. Add package lock file

    braydonf committed Oct 25, 2017
    Copy the full SHA
    625db9d View commit details
  4. Merge pull request #278 from felixbrucker/patch-1

    Use bugfix version of 'daemon'
    braydonf authored Oct 25, 2017
    Copy the full SHA
    b9b4e3c View commit details
  5. Copy the full SHA
    580a1e7 View commit details
  6. Update package log file

    braydonf committed Oct 25, 2017
    Copy the full SHA
    1b1a2ae View commit details
  7. Merge pull request #283 from braydonf/master

    Update dependencies
    braydonf authored Oct 25, 2017
    Copy the full SHA
    80895bc View commit details
  8. Copy the full SHA
    cb5e474 View commit details
  9. Copy the full SHA
    1cfa9f2 View commit details
  10. Update storj-lib

    braydonf committed Oct 25, 2017
    Copy the full SHA
    02491d4 View commit details
  11. Update storj-lib

    braydonf committed Oct 25, 2017
    Copy the full SHA
    7e86227 View commit details
  12. Merge pull request #284 from braydonf/master

    Update storj-lib
    braydonf authored Oct 25, 2017
    Copy the full SHA
    c49efd8 View commit details
  13. Bump to v5.2.0

    braydonf committed Oct 25, 2017
    Copy the full SHA
    f30f185 View commit details
  14. Bump lock file

    braydonf committed Oct 25, 2017
    Copy the full SHA
    d1f2595 View commit details

Commits on Oct 27, 2017

  1. Committer: Kevin J Baird <knowledge@storj.io>

     Changes to be committed:
    	modified:   bin/storjshare-create.js
    	modified:   bin/storjshare-destroy.js
    	modified:   bin/storjshare-killall.js
    	modified:   bin/storjshare-load.js
    	modified:   bin/storjshare-logs.js
    	modified:   bin/storjshare-restart.js
    	modified:   bin/storjshare-save.js
    	modified:   bin/storjshare-start.js
    	modified:   bin/storjshare-status.js
    	modified:   bin/storjshare-stop.js
    	modified:   bin/storjshare.js
    	modified:   lib/api.js
    
    Changes wording from "shares" & "share" to "nodes" & "node" to make it more uniform.
    
      As requested in issue #110 it can be confusing for new users to distinguish the meaning between node and share.  As they are one in the same, I leaned towards node and replaced the
    word share where it is output.  (I only replaced human readables, no variables, parameters, or fields were touched.)
    Ubuntu authored and Ubuntu committed Oct 27, 2017
    Copy the full SHA
    8486f9d View commit details

Commits on Nov 1, 2017

  1. nodejs lts v8

    littleskunk committed Nov 1, 2017
    Copy the full SHA
    f65d943 View commit details

Commits on Dec 6, 2017

  1. Merge pull request #289 from littleskunk/lts

    nodejs lts v8
    braydonf authored Dec 6, 2017
    Copy the full SHA
    ba6db38 View commit details
  2. Merge pull request #287 from tempestb/Feature/ShareToNode

    Committer: Kevin J Baird <knowledge@storj.io>
    braydonf authored Dec 6, 2017
    Copy the full SHA
    8912b0b View commit details
  3. Bump to v5.3.0

    braydonf committed Dec 6, 2017
    Copy the full SHA
    081dd3e View commit details
  4. Fix tests

    braydonf committed Dec 6, 2017
    Copy the full SHA
    b95a78e View commit details
  5. Update storj-lib

    braydonf committed Dec 6, 2017
    Copy the full SHA
    001aced View commit details
  6. Merge pull request #305 from braydonf/v8

    V8
    braydonf authored Dec 6, 2017
    Copy the full SHA
    567825b View commit details

Commits on Dec 7, 2017

  1. Rename 'Share' to 'Node' in storjshare status command

    This was forgotten in #287
    martijnrondeel authored Dec 7, 2017
    Copy the full SHA
    897b97d View commit details
  2. Merge pull request #306 from martijnrondeel/patch-1

    Rename 'Share' to 'Node' in storjshare status command
    braydonf authored Dec 7, 2017
    Copy the full SHA
    713a729 View commit details

Commits on Dec 12, 2017

  1. Copy the full SHA
    e903e35 View commit details
  2. shortens long error string

    navillasa committed Dec 12, 2017
    Copy the full SHA
    c594507 View commit details

Commits on Dec 26, 2017

  1. Update: HTTP -> HTTPS

    URLs updated to use HTTPS protocol where appropriate to improve security and privacy.
    him2him2 committed Dec 26, 2017
    Copy the full SHA
    ecd984f View commit details

Commits on Dec 28, 2017

  1. Copy the full SHA
    fd8ad51 View commit details

Commits on Dec 30, 2017

  1. Merge pull request #315 from stefanbenten/master

    Mark Tunnel Connections as bad
    braydonf authored Dec 30, 2017
    Copy the full SHA
    f2f549f View commit details
  2. Merge pull request #313 from him2him2/fix/HTTPS

    Update: HTTP -> HTTPS
    braydonf authored Dec 30, 2017
    Copy the full SHA
    ef80353 View commit details
  3. Merge pull request #308 from nat-ventura/nv/start-invalid-dir

    specifies missing directory for invalid directory error
    braydonf authored Dec 30, 2017
    Copy the full SHA
    c8b616f View commit details

Commits on Feb 2, 2018

  1. Set default Tunnel Configuration to "not allowed"

    Tunnel Connections are not stable in regards to SIP09 and also bad for performance.
    Further it increases the chances to mark a legit farmer as a cheater when creating the payout sheet.
    stefanbenten authored Feb 2, 2018
    Copy the full SHA
    88946ee View commit details
  2. Merge pull request #319 from stefanbenten/patch-1

    Set default Tunnel Configuration to "not allowed"
    braydonf authored Feb 2, 2018
    Copy the full SHA
    a41b2b7 View commit details

Commits on Mar 12, 2018

  1. Update lockfile

    braydonf committed Mar 12, 2018
    Copy the full SHA
    e9e0854 View commit details
  2. Update moment

    braydonf committed Mar 12, 2018
    Copy the full SHA
    d2ad5df View commit details
  3. Merge pull request #330 from braydonf/master

    Update lockfile
    braydonf authored Mar 12, 2018
    Copy the full SHA
    e32e5e4 View commit details
  4. Bump to v5.3.1

    braydonf committed Mar 12, 2018
    Copy the full SHA
    1b070d2 View commit details

Commits on Mar 21, 2018

  1. Copy the full SHA
    124d25b View commit details
  2. Merge pull request #332 from pzajda/readmeAddInstallTitle

    Add a title for Install section in the readme file
    braydonf authored Mar 21, 2018
    Copy the full SHA
    c7e63ea View commit details

Commits on May 1, 2018

  1. Update CONTRIBUTING.md

    Took out broken link to waffle.io; took out promise of a job interview with James, and minor copy edits.
    Jodimsmith authored May 1, 2018
    Copy the full SHA
    2e9c408 View commit details

Commits on May 2, 2018

  1. Merge pull request #339 from Jodimsmith/patch-1

    Update CONTRIBUTING.md
    braydonf authored May 2, 2018
    Copy the full SHA
    acb7079 View commit details

Commits on Jul 29, 2018

  1. Update README.md

    jtolio authored Jul 29, 2018
    Copy the full SHA
    5a001fe View commit details
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ addons:
- g++-4.8
- clang
node_js:
- "6.9.1"
- "8"
before_install:
- export CXX="g++-4.8" CC="gcc-4.8"
after_script:
15 changes: 7 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Contributing
============

Want to contribute, but not sure where to start? Check out our [issue board](http://waffle.io/storj/core)!
Want to contribute? Read on!

Contributor License Agreement
-----------------------------
@@ -12,17 +12,16 @@ You also assert that you have completed the [Contributor License Agreement](http
Pull Requests for Swag
----------------------
We love pull requests, so to encourage more of them we are offering
awesome swag. Only SIGNIFICANT pull requests count. Fixing a comma
awesome swag. Only significant pull requests count. Fixing a comma
doesn’t count, but fixing a bug, adding more test coverage, or writing
guides & documentation does.
guides and documentation does.

- Make 1x pull requests to get into the contributors list and website
- Make 2x pull requests, we will send you a packet of stickers
- Make 5x pull requests, and we will send you a t-shirt and more stickers
- Make 10x pull requests, and you get a job interview with James + other swag
- Make 2x pull requests and we will send you a packet of stickers
- Make 5x pull requests and we will send you a t-shirt and more stickers
- Make 10x pull requests, and you'll get a job interview + other swag

If we miss a milestones (probably because we are working hard), just let
us know so we can get you your swag.
If we miss a milestone, just let us know so we can get you your swag.

Style Guide
-----------
2 changes: 1 addition & 1 deletion ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ Replace the values below using the output from `storjshare --version`.
Replace the values below using the output from `node --version`.

```
6.9.1
v8.x.x
```

### Expected Behavior
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
_**Notice**: Development on this repo is on pause until we finish our v3 rearchitecture. Please see https://github.com/storj/storj for ongoing v3 development._

Storj Share Daemon
==================

@@ -19,7 +21,7 @@ storjshare daemon is also available for Arch Linux as a package on the AUR as [s
Make sure you have the following prerequisites installed:

* Git
* Node.js LTS (6.9.x)
* Node.js LTS (8.x.x)
* NPM
* Python 2.7
* GCC/G++/Make
@@ -63,7 +65,7 @@ Red Hat / Centos
```
yum groupinstall 'Development Tools'
```
You might also find yourself lacking a C++11 compiler - [see this](http://hiltmon.com/blog/2015/08/09/c-plus-plus-11-on-centos-6-dot-6/)
You might also find yourself lacking a C++11 compiler - [see this](https://hiltmon.com/blog/2015/08/09/c-plus-plus-11-on-centos-6-dot-6/)

#### Mac OSX

@@ -79,6 +81,8 @@ npm install --global windows-build-tools

---

### Install ###

Once build dependencies have been installed for your platform, install the
package globally using Node Package Manager:

4 changes: 2 additions & 2 deletions bin/storjshare-create.js
Original file line number Diff line number Diff line change
@@ -43,11 +43,11 @@ function whichEditor() {
}

storjshare_create
.description('generates a new share configuration')
.description('generates a new node configuration')
.option('--storj <addr>', 'specify the STORJ address (required)')
.option('--key <privkey>', 'specify the private key')
.option('--storage <path>', 'specify the storage path')
.option('--size <maxsize>', 'specify share size (ex: 10GB, 1TB)')
.option('--size <maxsize>', 'specify node size (ex: 10GB, 1TB)')
.option('--rpcport <port>', 'specify the rpc port number')
.option('--rpcaddress <addr>', 'specify the rpc address')
.option('--maxtunnels <tunnels>', 'specify the max tunnels')
4 changes: 2 additions & 2 deletions bin/storjshare-destroy.js
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@ const utils = require('../lib/utils');
const storjshare_destroy = require('commander');

storjshare_destroy
.description('stops a running share and removes it from status')
.option('-i, --nodeid <nodeid>', 'id of the managed share')
.description('stops a running node and removes it from status')
.option('-i, --nodeid <nodeid>', 'id of the managed node')
.option('-r, --remote <hostname:port>',
'hostname and optional port of the daemon')
.parse(process.argv);
2 changes: 1 addition & 1 deletion bin/storjshare-killall.js
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ const utils = require('../lib/utils');
const storjshare_killall = require('commander');

storjshare_killall
.description('destroys all running shares and stop daemon')
.description('destroys all running nodes and stop daemon')
.option('-r, --remote <hostname:port>',
'hostname and optional port of the daemon')
.parse(process.argv);
2 changes: 1 addition & 1 deletion bin/storjshare-load.js
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ const utils = require('../lib/utils');
const storjshare_load = require('commander');

storjshare_load
.description('loads a snapshot of shares and starts all of them')
.description('loads a snapshot of nodes and starts all of them')
.option('-s, --snapshot <path>', 'path to load the snapshot file')
.option('-r, --remote <hostname:port>',
'hostname and optional port of the daemon')
4 changes: 2 additions & 2 deletions bin/storjshare-logs.js
Original file line number Diff line number Diff line change
@@ -12,8 +12,8 @@ const path = require('path');
const FsLogger = require('fslogger');

storjshare_logs
.description('tails the logs for the given share id')
.option('-i, --nodeid <nodeid>', 'id of the running share')
.description('tails the logs for the given node id')
.option('-i, --nodeid <nodeid>', 'id of the running node')
.option('-l, --lines <num>', 'lines back to print')
.option('-r, --remote <hostname:port>',
'hostname and optional port of the daemon')
10 changes: 5 additions & 5 deletions bin/storjshare-restart.js
Original file line number Diff line number Diff line change
@@ -7,9 +7,9 @@ const utils = require('../lib/utils');
const storjshare_restart = require('commander');

storjshare_restart
.description('restarts the running share specified')
.option('-i, --nodeid <nodeid>', 'id of the running share')
.option('-a, --all', 'restart all running shares')
.description('restarts the running node specified')
.option('-i, --nodeid <nodeid>', 'id of the running node')
.option('-a, --all', 'restart all running nodes')
.option('-r, --remote <hostname:port>',
'hostname and optional port of the daemon')
.parse(process.argv);
@@ -30,7 +30,7 @@ if (storjshare_restart.remote) {

utils.connectToDaemon(port, function(rpc, sock) {
if (storjshare_restart.all) {
console.info('\n * restarting all managed shares');
console.info('\n * restarting all managed nodes');
}

rpc.restart(storjshare_restart.nodeid || '*', (err) => {
@@ -42,7 +42,7 @@ utils.connectToDaemon(port, function(rpc, sock) {
if (storjshare_restart.nodeid) {
console.info(`\n * share ${storjshare_restart.nodeid} restarted`);
} else {
console.info('\n * all shares restarted successfully');
console.info('\n * all nodes restarted successfully');
}

sock.end();
2 changes: 1 addition & 1 deletion bin/storjshare-save.js
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ const utils = require('../lib/utils');
const storjshare_save = require('commander');

storjshare_save
.description('saves a snapshot of shares')
.description('saves a snapshot of nodes')
.option('-s, --snapshot <path>', 'path to write the snapshot file')
.option('-r, --remote <hostname:port>',
'hostname and optional port of the daemon')
8 changes: 4 additions & 4 deletions bin/storjshare-start.js
Original file line number Diff line number Diff line change
@@ -9,9 +9,9 @@ const config = require('../lib/config/daemon');
const storjshare_start = require('commander');

storjshare_start
.description('starts a new network share')
.description('starts a new network node')
.option('-c, --config <path>', 'specify the configuration path')
.option('-d, --detached', 'run share without management from daemon')
.option('-d, --detached', 'run node without management from daemon')
.option('-u, --unsafe', 'ignore system resource guards')
.option('-r, --remote <hostname:port>',
'hostname and optional port of the daemon')
@@ -49,10 +49,10 @@ function runManagedShare() {
utils.connectToDaemon(port, function(rpc, sock) {
rpc.start(configPath, (err) => {
if (err) {
console.error(`\n failed to start share, reason: ${err.message}`);
console.error(`\n failed to start node, reason: ${err.message}`);
return sock.end();
}
console.info(`\n * starting share with config at ${configPath}`);
console.info(`\n * starting node with config at ${configPath}`);
sock.end();
}, storjshare_start.unsafe);
}, address);
15 changes: 9 additions & 6 deletions bin/storjshare-status.js
Original file line number Diff line number Diff line change
@@ -10,20 +10,23 @@ const colors = require('colors/safe');
const storjshare_status = require('commander');

storjshare_status
.description('prints the status of all managed shares')
.description('prints the status of all managed nodes')
.option('-r, --remote <hostname:port>',
'hostname and optional port of the daemon')
.option('-j, --json',
'JSON formatted status of all managed shares')
'JSON formatted status of all managed nodes')
.parse(process.argv);

function getColoredValue(status, value) {
switch (status) {
case 0:
// good to go
return colors.green(value);
case 1:
return colors.yellow(value);
//mark Tunnel Connections as bad
return colors.red(value);
case 2:
//Not Connected - Private NET
return colors.red(value);
default:
return value;
@@ -80,7 +83,7 @@ function prepareJson(shares) {
json[i].uptime = prettyMs(share.meta.uptimeMs);
json[i].restarts = share.meta.numRestarts || 0;
json[i].peers = share.meta.farmerState.totalPeers || 0;
json[i].offers = fixContractValue(
json[i].allocs = fixContractValue(
share.meta.farmerState.contractCount
);
json[i].dataReceivedCount = fixContractValue(
@@ -122,8 +125,8 @@ utils.connectToDaemon(port, function(rpc, sock) {
console.log(json);
} else {
let table = new Table({
head: ['Share', 'Status', 'Uptime', 'Restarts', 'Peers',
'Offers', 'Delta', 'Port', 'Shared', 'Bridges'],
head: ['Node', 'Status', 'Uptime', 'Restarts', 'Peers',
'Allocs', 'Delta', 'Port', 'Shared', 'Bridges'],
style: {
head: ['cyan', 'bold'],
border: []
4 changes: 2 additions & 2 deletions bin/storjshare-stop.js
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@ const utils = require('../lib/utils');
const storjshare_stop = require('commander');

storjshare_stop
.description('stops the running share specified')
.option('-i, --nodeid <nodeid>', 'id of the running share')
.description('stops the running node specified')
.option('-i, --nodeid <nodeid>', 'id of the running node')
.option('-r, --remote <hostname:port>',
'hostname and optional port of the daemon')
.parse(process.argv);
6 changes: 3 additions & 3 deletions bin/storjshare.js
Original file line number Diff line number Diff line change
@@ -26,10 +26,10 @@ storjshare
.command('status', 'check status of node(s)')
.command('logs', 'tail the logs for a node')
.command('create', 'create a new configuration')
.command('save', 'snapshot the currently managed shares')
.command('load', 'load a snapshot of previously managed shares')
.command('save', 'snapshot the currently managed node')
.command('load', 'load a snapshot of previously managed nodes')
.command('destroy', 'kills the farming node')
.command('killall', 'kills all shares and stops the daemon')
.command('killall', 'kills all nodes and stops the daemon')
.command('daemon', 'starts the daemon')
.parse(process.argv);

2 changes: 1 addition & 1 deletion dockerfiles/get_dep_ver.ps1
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ $version = $version.Substring($pos+1)
Write-Host "Found Latest Version of Git for Windows - ${version}"
$env:MINGIT_VERSION = "${version}"

$node_base_ver = 6
$node_base_ver = 8
$arch_ver = "-x64"
$uri = "https://nodejs.org/dist/latest-v${node_base_ver}.x/"
$site = invoke-webrequest $uri -DisableKeepAlive -UseBasicParsing
2 changes: 1 addition & 1 deletion dockerfiles/storjshare-daemon-alpine.dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:boron-alpine
FROM node:alpine
MAINTAINER Storj Labs (storj.io)

RUN apk add --no-cache bash g++ git make openssl-dev python vim && \
2 changes: 1 addition & 1 deletion dockerfiles/storjshare-daemon-ubuntu.dockerfile
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ MAINTAINER Storj Labs (www.storj.io)

RUN apt-get update && \
apt-get -y install apt-utils curl && \
curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
curl -sL https://deb.nodesource.com/setup_8.x | bash - && \
apt-get -y install build-essential git libssl-dev nodejs python vim && \
npm install --global storjshare-daemon --unsafe-perm && \
apt-get --purge remove -y apt-utils build-essential curl git libssl-dev python vim && \
6 changes: 3 additions & 3 deletions example/farmer.config.json
Original file line number Diff line number Diff line change
@@ -34,14 +34,14 @@
"doNotTraverseNat": false,
// Maximum number of tunnels to provide to the network
// Tunnels help nodes with restrictive network configurations participate
"maxTunnels": 3,
"maxTunnels": 0,
// Maximum number of concurrent connections to allow
"maxConnections": 150,
// If providing tunnels, the starting and ending port range to open for
// them
"tunnelGatewayRange": {
"min": 4001,
"max": 4003
"min": 0,
"max": 0
},
// Number of times to retry joining the network and the wait time between
"joinRetry": {
Loading