-
Windows 10
- install opencl sdk ,recommend cuda v10.1 see here
-
Ubuntu 19
- need display card
$ sudo apt-get install beignet-dev nvidia-cuda-dev nvidia-cuda-toolkit
-
Download miner from the release here
-
Unzip the file
-
Run with config file
halachainminer.conf
-
modify the config params
mineraddress
=TmRvuqtjb3DsYQJTcEZQZD5qfJWcMggdEYPrpcserver
=127.0.0.1:1234rpcuser
=testrpcpass
=test
===========pool config ==========
pool
=stratum+tcp://127.0.0.1:3177pooluser
=RmN4SADy42FKmN8ARKieX9iHh9icptdgYNn.1 (address.worknum)poolpass
=
-
open
cmd
tools -
cd miner directory
-
# run
$ cd (miner directory)
$ ./hlc-miner
- Run with solo command line
#run
$ cd (miner directory)
$ ./hlc-miner -s 127.0.0.1:1234 -u test -P test --symbol HLC --notls -i 24 -W 256 --mineraddress RmN4SADy42FKmN8ARKieX9iHh9icptdgYNn
- Run with pool command line
#run
$ cd (miner directory)
$ ./hlc-miner -o stratum+tcp://127.0.0.1:3177 -m RmN4SADy42FKmN8ARKieX9iHh9icptdgYNn --symbol HLC --notls -i 24 -W 256
--dag
the node is dag node-s
the node rpc listen address-u
the node rpc username-P
the node rpc password--symbol
now justHLC
is supported--i
Intensities (the work size is 2^intensity) up to device--W
The explicitly declared sizes of the work to do up to device (overrides intensity)--mineraddress
the miner address-o
the pool address-m
the pool user account address
the pool system contain 6 precedures:
-
pool procedure, to accept miner connect and find blocks
-
round procedure, to calculate miners share and credit
-
payment procedure, to make pay list for pay
-
pay procedure, to send coin to miner
-
admin procedure, to manage pay list
-
api procedure, to serve json data for pool index page
os: linux (e.g. ubunutu 16.04>,centos 6>)
node.js enviroment (version >= 10)
redis / mysql / nginx , recommend installing from docker
hlc node (at least 1 node referring to https://github.com/hlcfans/HLCTest/blob/master/README.md)
https://github.com/hlcfans/HLCTest/tree/master/hlc-pool/
download binary from https://nodejs.org/zh-cn/download/
install referring to https://github.com/nodejs/help/wiki/Installation
load pol.sql( utils/pol.sql ) file to mysql
cd pool code folder and install node modules
# install c++ dev tools
# ubuntu
apt-get install build-essential
# centos
yum groupinstall "Development Tools"
# install node modules
npm install --save
you should setup at least 4 config files (path to conf/ ) to run pool,round,payment,pay,admin and api. Please refer to example config file(conf/xx.js).
pool port (tcp),to accept mining machine connect (e.g. 3177,80)
# pool
npm run pool pool.js
# pay
npm run round pay.js
npm run payment pay.js
npm run pay pay.js
npm run admin admin.js
# web api
npm run api api.js
pool support stratum protocol,so your minning program should config protocol.
# exmaple
# refer to hlc miner README.md
miner.exe -o stratum+tcp://server_ip:3177 -m your_wallet_address.your_machine_id
open pool web site (e.g. http://your_server:80),and search your address
check your machine status and hashrate per 30 minutes