A duino-coin.miner made in NodeJS. This repo is fork of https://github.com/LDarki/NodeJS-DuinoCoin-Miner. This miner can be runned on the Heroku cloud.
- NodeJS: https://nodejs.org/
- Git: https://git-scm.com/
- Heroku CLI: https://devcenter.heroku.com/articles/heroku-cli
- Heroku account: https://heroku.com/
- Download this repo or use this command:
git clone https://github.com/Gunthersuper/node-duino-miner-heroku
. - In the miner folder find a
config.ini
file. Fill all the needed info: your duinocoin username, mining key (if you have), hashlib (sha1 by default), worker (worker name that you can see on the duinocoin dashboard), threads (how many workers, 4 for mostly devices). - Default config file:
username=gunthersuper
mining_key=
hashlib=js-sha1
worker=node-miner
threads=2
- Open cmd or PowerShell in the miner folder. Enter some commands to deploy the miner to Heroku:
Heroku login
git init
git add .
git commit -m 'commit'
heroku create
git push heroku main
(or if it isnt workinggit push heroku main
)heroku ps:scale web=0
heroku ps:scale bot=1
Heroku logs:
- I recommend to use 2 threads for 1 app.
- You can make upto 5 apps per 1 account. But you can make a lot of Heroku accs.
Install the dependencies
npm i
Run the miner
node index
Notes:
- Default config file:
username=gunthersuper
mining_key=
hashlib=js-sha1
worker=node-miner
threads=2
- You can test for the best hash lib using this command:
node testLib.js
In order to use that script you need to have the config.ini file in the same directory.