cd YOUR_BUILD_DIRECTORY/config4cpp
make -j5
cd YOUR_BUILD_DIRECTORY/flatbuffers
mkdir build
cd build
cmake ..
make -j5
sudo make install
cd YOUR_BUILD_DIRECTORY/libp2p
mkdir x86_64-Linux
cd x86_64-Linux
cmake ../src
make -j5
cd YOUR_BUILD_DIRECTORY/poolcore
mkdir x86_64-Linux
cd x86_64-Linux
cmake ../src -DROOT_SOURCE_DIR=YOUR_BUILD_DIRECTORY -DZCASH_ENABLED=1
make -j5
cd YOUR_BUILD_DIRECTORY/pool_frontend_zcash
mkdir x86_64-Linux
cd x86_64-Linux
cmake ../src -DROOT_SOURCE_DIR=YOUR_BUILD_DIRECTORY
make -j5
cd YOUR_BUILD_DIRECTORY/poolrestapi
mkdir x86_64-Linux
cd x86_64-Linux
cmake ../src -DROOT_SOURCE_DIR=YOUR_BUILD_DIRECTORY
make -j5
cd YOUR_BUILD_DIRECTORY/nginx-1.15.8
./configure --prefix=NGINX_INSTALL_DIRECTORY --add-module=YOUR_BUILD_DIRECTORY/ngxrest
make -j5
make install
Setup ZCash daemon (version 2.0.3 or higher required)
Launch command is src/zcashd -p2pport=12201. Port 12201 is used by internal pool protocol. Also, you can use poolrpccmd utility for interact with daemon by command line.
isMaster - alltimes "true", slave mode for distribute share calculating not implemented
poolFee - pool fee in percents
poolFeeAddr - address for pool fee
walletAddrs - list of zcash daemons in pool cluster. Now tested only with one daemon. Port 12201 must be taken from -p2pport command line argument of zcash daemon (see 4).
localAddress - backend address and port. Used by poolrestapi module and poolrpccmd utility
walletAppName - alltimer "pool_rpc"
poolAppName - alltimes "pool_frontend_zcash"
requiredConfirmations - minimal confirmations for block before payout (pool can't make payout for orphans)
defaultMinimalPayout - default minimal payout for new accounts
minimalPayout - minimal allowed payout in one transaction
dbPath - path for pool database, must be exists
keepRoundTime - how much days pool keep shares
keepStatsTime - statistic (performance, number of GPUs, temperatures) keep time in minutes
confirmationsCheckInterval - interval for check new mined blocks confirmations number
payoutInterval - payout interval in minutes
balanceCheckInterval - balance check interval in minutes
statisticCheckInterval - statistic check interval in minutes (should be 1)
checkAddress - enable client address checking. Use 'false' when you setup pool on testnet
shareTarget - fixed share difficulty for native(zeromq) and stratum miners
equihashShareCheck - enable additional equihash share checking, not need on private pools. Disable it for less CPU usage
stratumWorkLifeTime - stratum work update interval in minutes, required for some miners
zmqclientHost - native zeromq protocol host name
zmqclientListenPort - navite protocol port
zmqclientWorkPort - extra port for native protocol (pool uses port N and N+1)
pool_zaddr - only for ZCash, pool Z-Address for receive coinbase funds. Must be created by zcash-cli z_getnewaddress
pool_taddr - only for ZCash, address used for make payouts. Must be created by zcash-cli getnewaddress
cd YOUR_BUILD_DIRECTORY/pool_frontend_zcash/x86_64-Linux
./pool_frontend_zcash ~/.poolcfg/zcash.cfg
~/.poolcfg/zcash.cfg - pool configuration file (see p. 4)
Launch poolrestapi and nginx
cd YOUR_BUILD_DIRECTORY/poolrestapi/x86_64-Linux
./poolrestapi ~/.poolcfg/poolrestapi.cfg
Copy web client part and launch nginx
cd YOUR_BUILD_DIRECTORY/pooljs/coins-for-all/webapp
cp -r * NGINX_INSTALL_DIRECTORY/html
sudo NGINX_INSTALL_DIRECTORY/sbin/nginx (you need sudo because port 80 is used)
请发表评论