Skip to content

Sushipool/source

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SushiPool Website and Downloadable Clients

Github All Releases

1. Instruction to run the SushiPool nodejs miner.

To start mining using the SushiPool nodejs, type the following command.

$ cd miner
$ yarn
$ ./sushipool

By default, configurations will be read from sushipool.conf (a JSON file). If no configuration file is found, the script will prompt the user to enter parameter values before saving them into a configuration file. Alternatively you can also specify various parameters when starting the miner, like --address, --threads and --name to specify the wallet address, number of theads and miner name. The --test parameter can be passed to run the script on the testnet, and the --seeds options can be used to specify your list of custom seed nodes.

The miner script establishes light consensus with the network. If you are running it for the first time, it might take a while to download the consensus files, so you can copy the main-light-consensus or test-light-consensus folders from elsewhere if you have them. Statistics will be printed every 5 seconds, so we don't need to specify that parameter anymore.

2. How to build stand-alone binaries.

In the step above, we need to have nodejs and all the dependencies required by the miner to be installed. However, often user prefers to run a stand-alone binary file on their system. Follow the steps below to create one.

As a pre-requisite, we need to use pkg. This is used to package Node.js and create stand-alone binaries for the miner. Install pkg by typing the following command:

$ npm install -g pkg

Then change to the scripts directory and run the following, depending on your platform:

$ ./build.sh node9 macos x64 'tag' # macos 64-bit
$ ./build.sh node9 linux x64 'tag '# linux 64-bit
$ ./build.sh node9 win x64 'tag'  # win 64-bit

where 'tag' is any string that is used to tag this release, e.g. 'standard', 'fast, 'extreme' The output for the command above can be found at ../../binaries. Run it the same way as in step (1).

In addition, the script build_all.sh can also be used to build multiple versions of the stand-alone binaries for different CPU sets. The following 4 variants are supported:

compact: that works on all CPUs
sse2: works on most CPUs
avx2: works on new CPUs
avx512f: works on newest Intel processors (>=Skylake-SP)

License

This code is using the No license license.
Which means you are allowed to use the software.
You are not allowed the modify / copy the code without the permission from the owner.
For more information visit: https://choosealicense.com/no-permission/.

  • (c) 2018 @joewandy
  • (c) 2018 @brantje