加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

搭建比特币矿池的具体步骤

(2013-12-11 10:43:40)
标签:

用户名

至此

脚本

内容

步骤

it

分类: 比特币

操作系统:Linux

环境:GUI 

搭建BTC矿池前端程序:https://github.com/hardcpp/P2PoolExtendedFrontEnd

搭建BTC矿池后端程序:https://github.com/forrestv/p2pool/ 


准备工作:
> Bitcoin钱包程序(客户端):http://www.bitcoin.org/
> Python:http://www.python.org/
> zope.interface for Python:
https://pypi.python.org/pypi/zope.interface
https://pypi.python.org/packages/source/z/zope.interface/
> Twisted for Python:http://twistedmatrix.com/trac/
> python-argparse / argparse for Python:
https://code.google.com/p/argparse/
https://pypi.python.org/pypi/argparse
> litecoin_scrypt for Python:
https://github.com/forrestv/p2pool/tree/master/litecoin_scrypt
https://github.com/Tydus/litecoin_scrypt
https://github.com/CryptoManiac/stratum-mining-proxy/tree/master/litecoin_scrypt

本教程只包含Bitcoin和Litecoin钱包(客户端)的安装教程,不包含挖矿(造币)程序的安装教程,有需要的请自行查找相应的帖子。


# 加入:
 

deb http://mirror.nttu.edu.tw/debian/ squeeze main
deb-src http://mirror.nttu.edu.tw/debian/ squeeze main

deb http://ftp.kr.debian.org/debian/ squeeze main
deb-src http://ftp.kr.debian.org/debian/ squeeze main

deb http://ftp.us.debian.org/debian squeeze main
deb-src http://ftp.us.debian.org/debian/ squeeze main

deb http://security.debian.org/ squeeze/updates main contrib
deb-src http://security.debian.org/ squeeze/updates main contrib

# squeeze-updates, previously known as 'volatile'
deb http://ftp.kr.debian.org/debian/ squeeze-updates main contrib
deb-src http://ftp.kr.debian.org/debian/ squeeze-updates main contrib


安装GCC/G++/make/chkconfig/autoconf:
 

apt-get install gcc
apt-get install g++
apt-get install make
apt-get install chkconfig
apt-get install autoconf


安装libtool:
http://www.gnu.org/software/libtool/
http://ftpmirror.gnu.org/libtool/
ftp://ftp.gnu.org/gnu/libtool/
 

cd /tmp
wget http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz
tar zxvf libtool-2.4.2.tar.gz
cd libtool-2.4.2
./configure --prefix=/usr/local/libtool --enable-shared --enable-ltdl-install
make -j 3
make -j 3 check
make install


安装zlib:【如果已经有了,不用安装】
http://www.zlib.net/
http://sourceforge.net/projects/libpng/files/zlib/
 

cd /tmp
wget http://nchc.dl.sourceforge.net/project/libpng/zlib/1.2.7/zlib127.zip
unzip zlib127.zip

# 已经有zlib的不继续安装
cd zlib-1.2.7
./configure --prefix=/usr/local/zlib --enable-shared
make -j 3
make -j 3 test
make install


安装zlibc、zlib1g-dev:
 

apt-get install zlibc zlib1g-dev


安装cmake:
http://www.cmake.org
http://cmake.org/cmake/resources/software.html
 

# 这个太陈旧了 apt-get install cmake
# apt-get remove cmake

cd /tmp
wget http://www.cmake.org/files/v2.8/cmake-2.8.9.tar.gz
tar zxvf cmake-2.8.9.tar.gz
cd cmake-2.8.9
./bootstrap --prefix=/usr/local/cmake
# 备用./configure --prefix=/usr/local/cmake
make
make -j 3 test
make install

# 可执行程序:/usr/local/cmake/bin/cmake

ln -s /usr/local/cmake/bin/cmake /usr/bin
# 建立链接


如果不指定prefix,默认安装目录:/usr/local/share/cmake-2.8



安装Python:
http://www.python.org/getit/

一般系统中都已经存在python,执行python -v命令可以查看python组件的版本号,并进入python,执行Ctrl + D组合键退出Python;执行whereis python查看python目录

下载源码编译安装python2.7:
 

cd /tmp
wget http://www.python.org/ftp/python/2.7.5/Python-2.7.5.tgz
tar zxvf Python-2.7.5.tgz
cd Python-2.7.5
./configure --prefix=/usr/local/python2.7 --enable-unicode=ucs4 --enable-shared

# 【之前已经安装zlib和zlibc,这里不再进行修改,不然会出错】
# 修改模块配置,让python支持zlib:
# nano Modules/Setup
# 在454行左右找到:#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
# 去掉前面的#注释
# 变成:zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz

make -j 3
make -j 3 test
make install


备份原来的动态链接文件,建立新的:
 

mv /usr/bin/python /usr/bin/python.bak
mv /usr/bin/python2.7 /usr/bin/python2.7.bak
ln -s /usr/local/python2.7/bin/python /usr/bin/python
ln -s /usr/local/python2.7/bin/python2.7 /usr/bin/python2.7

chmod +x /usr/local/python2.7/lib/libpython2.7.so
chmod +x /usr/local/python2.7/lib/libpython2.7.so.1.0

cp /usr/local/python2.7/lib/libpython2.7.so.1.0 /usr/local/lib
cd /usr/local/lib
ln -s libpython2.7.so.1.0 libpython2.7.so

ldconfig


执行:
 

python


输出:
 

Python 2.7.3 (default, Sep 30 2012, 04:41:47)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>


如果没有解决,nano /etc/ld.so.conf,添加一行:/usr/local/python2.7/lib,保存后再执行ldconfig

Python安装完毕后,还需要安装用来设置python的工具:setuptools,包含easy_install可以用来安装Python第三方扩展包
http://pypi.python.org/pypi/setuptools/
http://pypi.python.org/packages/2.7/s/setuptools/
http://peak.telecommunity.com/DevCenter/EasyInstall#command-line-options
http://peak.telecommunity.com/DevCenter/EasyInstall
http://www.ibm.com/developerworks/cn/linux/l-cppeak3.html

【忽略】:
 

cd /tmp
wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-py2.7.egg
mkdir -p /usr/local/python2.7/setuptools/lib/python2.7/site-packages
sh setuptools-0.6c11-py2.7.egg --prefix=/usr/local/python2.7/setuptools


执行:
 

cd /tmp
wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py


setuptools安装成功,运行python,输入import setuptools和import easy_install分别验证一下有没有错误


安装 zope.interface for Python:
https://pypi.python.org/pypi/zope.interface
https://pypi.python.org/packages/source/z/zope.interface/
 

cd /tmp
wget https://pypi.python.org/packages/source/z/zope.interface/zope.interface-4.0.5.zip
unzip zope.interface-4.0.5.zip
cd zope.interface-4.0.5
python setup.py build
python setup.py install


【安装Twisted之前如果没有安装zope.interface,在安装过程中自动安装zope.interface】

安装Twisted for Python:
http://twistedmatrix.com/trac/
https://pypi.python.org/packages/source/T/Twisted/
https://pypi.python.org/pypi/Twisted
 

cd /tmp
wget https://pypi.python.org/packages/source/T/Twisted/Twisted-13.0.0.tar.bz2
bzip2 -d Twisted-13.0.0.tar.bz2
tar -xvf Twisted-13.0.0.tar
cd Twisted-13.0.0
python setup.py build
python setup.py install


执行python命令,然后执行import twisted命令即可验证



安装 argparse for Python:
https://code.google.com/p/argparse/
https://code.google.com/p/argparse/downloads/list
https://pypi.python.org/packages/source/a/argparse/
https://pypi.python.org/pypi/argparse
 

cd /tmp
wget http://argparse.googlecode.com/files/argparse-1.2.1.tar.gz
tar zxvf argparse-1.2.1.tar.gz
cd argparse-1.2.1
python setup.py build
python setup.py install


安装 litecoin_scrypt for Python:
https://github.com/forrestv/p2pool/tree/master/litecoin_scrypt
https://github.com/Tydus/litecoin_scrypt
https://github.com/CryptoManiac/stratum-mining-proxy/tree/master/litecoin_scrypt
复制列表中的几个文件:
https://github.com/Tydus/litecoin_scrypt
https://github.com/forrestv/p2pool/tree/master/litecoin_scrypt
 

cd /tmp
wget https://github.com/Tydus/litecoin_scrypt/archive/master.zip
unzip master.zip
cd litecoin_scrypt-master
python setup.py build
python setup.py install


【Linux平台忽略】
http://www.py2exe.org/
http://sourceforge.net/projects/py2exe/
https://pypi.python.org/pypi/py2exe




安装:
python-rrdtool【忽略】
http://sourceforge.net/projects/rrdtool/
https://pypi.python.org/pypi/rrdtool

python-pygame【忽略】
http://www.pygame.org/news.html
http://www.pygame.org/download.shtml

python-scipy【忽略】
http://www.scipy.org/
http://www.scipy.org/Download
http://www.scipy.org/Installing_SciPy/Linux
http://www.scipy.org/Installing_SciPy
https://pypi.python.org/pypi/scipy
https://pypi.python.org/packages/source/s/scipy/

python-twisted-web【忽略】
http://rpmfind.net/linux/rpm2html/search.php?query=python-twisted-web
http://pkgs.org/download/python-twisted-web
http://twistedmatrix.com/trac/wiki/TwistedWeb
http://twistedmatrix.com/trac/wiki/Downloads

python-imaging【忽略】
http://www.pythonware.com/products/pil/
https://pypi.python.org/pypi/PIL
http://effbot.org/downloads/#Imaging




下载p2pool:
https://github.com/forrestv/p2pool/
https://github.com/forrestv/p2pool/blob/master/run_p2pool.py
 

cd /tmp
rm master.zip
rm -rf litecoin_scrypt-master
cd /root
wget https://github.com/forrestv/p2pool/archive/master.zip
unzip master.zip


【Linux平台忽略以下两行命令】
python setup.py build
python setup.py install


比特币钱包前奏:
 

apt-get install libqtgui4


或者:
http://qt-project.org/
http://qt-project.org/downloads
http://sw.nokia.com/id/14b2039c-0e1f-4774-a4f2-9aa60b6d5313/Qt_SDK_Lin64_offline
cd /tmp
wget http://sw.nokia.com/id/14b2039c-0e1f-4774-a4f2-9aa60b6d5313/Qt_SDK_Lin64_offline
# 或者:
wget http://nds2.fds-forum.nokia.com/p/d/fds_forum/14b2039c-0e1f-4774-a4f2-9aa60b6d5313/Qt_SDK_Lin64_offline/QtSdk-offline-linux-x86_64-v1.2.1.run


安装比特币钱包:
http://bitcoin.org/
http://bitcoin.org/clients.html
http://sourceforge.net/projects/bitcoin/files/Bitcoin/
 

cd /root
wget http://downloads.sourceforge.net/project/bitcoin/Bitcoin/bitcoin-0.8.1/bitcoin-0.8.1-linux.tar.gz
tar zxvf bitcoin-0.8.1-linux.tar.gz
cd bitcoin-0.8.1-linux
cd bin/64
./bitcoind


./bitcoin-qt


创建一个Bitcoin配置文件:/root/.bitcoin/bitcoin.conf
mkdir /root/.bitcoin/
nano /root/.bitcoin/bitcoin.conf
写入内容:
 

server=1
rpcpassword=f8437ea640fc1557d69e2aa61480c653

rpcport=8332
port=8333


/root/.litecoin/bitcoin.conf
重启比特币客户端。
./bitcoind


钱包文件:
/root/.bitcoin/wallet.dat


cd /root
cd p2pool-master
运行:
python run_p2pool.py --bitcoind-address 127.0.0.1 --bitcoind-rpc-port 8332 --bitcoind-p2p-port 8333 --address 1JYZZihUfuQHv2MC4BfPzpsaPP7A6D3AQa --worker-port 9332 --p2pool-port 9333 --fee 0 --give-author 0.0


 

2013-04-26 20:52:33.738414 p2pool (version unknown 7032706f6f6c2d6d6173746572)
2013-04-26 20:52:33.738524
2013-04-26 20:52:33.738620 Testing bitcoind RPC connection to 'http://127.0.0.1:8332/' with username ''...
2013-04-26 20:52:33.785940 > Error getting work from bitcoind:
2013-04-26 20:52:33.786051 > Traceback (most recent call last):
2013-04-26 20:52:33.786080 >   File "/usr/local/python2.7/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 575, in _runCallbacks
2013-04-26 20:52:33.786106 >     current.result = callback(current.result, *args, **kw)
2013-04-26 20:52:33.786129 >   File "/usr/local/python2.7/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1126, in gotResult
2013-04-26 20:52:33.786153 >     _inlineCallbacks(r, g, deferred)
2013-04-26 20:52:33.786175 >   File "/usr/local/python2.7/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1068, in _inlineCallbacks
2013-04-26 20:52:33.786198 >     result = result.throwExceptionIntoGenerator(g)
2013-04-26 20:52:33.786221 >   File "/usr/local/python2.7/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
2013-04-26 20:52:33.786246 >     return g.throw(self.type, self.value, self.tb)
2013-04-26 20:52:33.786268 > --- ---
2013-04-26 20:52:33.786290 >   File "/root/p2pool-master/p2pool/util/deferral.py", line 41, in f
2013-04-26 20:52:33.786312 >     result = yield func(*args, **kwargs)
2013-04-26 20:52:33.786334 >   File "/usr/local/python2.7/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1068, in _inlineCallbacks
2013-04-26 20:52:33.786357 >     result = result.throwExceptionIntoGenerator(g)
2013-04-26 20:52:33.786550 >   File "/usr/local/python2.7/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
2013-04-26 20:52:33.786581 >     return g.throw(self.type, self.value, self.tb)
2013-04-26 20:52:33.786604 >   File "/root/p2pool-master/p2pool/bitcoin/helper.py", line 36, in getwork
2013-04-26 20:52:33.786650 >     work = yield go()
2013-04-26 20:52:33.786672 >   File "/usr/local/python2.7/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py", line 1068, in _inlineCallbacks
2013-04-26 20:52:33.786696 >     result = result.throwExceptionIntoGenerator(g)
2013-04-26 20:52:33.786718 >   File "/usr/local/python2.7/lib/python2.7/site-packages/Twisted-13.0.0-py2.7-linux-x86_64.egg/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
2013-04-26 20:52:33.786742 >     return g.throw(self.type, self.value, self.tb)
2013-04-26 20:52:33.786764 >   File "/root/p2pool-master/p2pool/util/jsonrpc.py", line 133, in _http_do
2013-04-26 20:52:33.786786 >     raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None))
2013-04-26 20:52:33.786852 > p2pool.util.jsonrpc.NarrowError: -10 Bitcoin is downloading blocks...


比特币客户端(钱包)在更新数据块的时候,矿池不能工作。


比特币客户端更新数据块完毕,再运行P2Pool,成功运行:
 

root@debian:~/p2pool-master# python run_p2pool.py
2013-04-28 17:32:28.005409 p2pool (version unknown 7032706f6f6c2d6d6173746572)
2013-04-28 17:32:28.005579
2013-04-28 17:32:28.005713 Testing bitcoind RPC connection to 'http://127.0.0.1:8332/' with username ''...
2013-04-28 17:32:33.993026     ...success!
2013-04-28 17:32:33.993386     Current block hash: e678e59418b9ed0571d15f143d19d943c950f58d7f614bb428
2013-04-28 17:32:33.993565     Current block height: 233544
2013-04-28 17:32:33.994109
2013-04-28 17:32:33.994405 Testing bitcoind P2P connection to '127.0.0.1:8333'...
2013-04-28 17:32:34.087142     ...success!
2013-04-28 17:32:34.087420
2013-04-28 17:32:34.087600 Determining payout address...
2013-04-28 17:32:34.087879     Getting payout address from bitcoind...
2013-04-28 17:32:34.158968     ...success! Payout address: 1AugiXeo6MccgkszuiwCQDSuHjrZWMZE8o
2013-04-28 17:32:34.159039
2013-04-28 17:32:34.159150 Loading shares...
2013-04-28 17:32:34.159242     ...done loading 0 shares (0 verified)!
2013-04-28 17:32:34.159297
2013-04-28 17:32:34.159324 Initializing work...
2013-04-28 17:32:34.366864     ...success!
2013-04-28 17:32:34.366967
2013-04-28 17:32:34.367025 Joining p2pool network using port 9333...
2013-04-28 17:32:34.768313     ...success!
2013-04-28 17:32:34.768421
2013-04-28 17:32:34.770890 Listening for workers on '' port 9332...
2013-04-28 17:32:34.810120     ...success!
2013-04-28 17:32:34.810228
2013-04-28 17:32:34.810257 Started successfully!
2013-04-28 17:32:34.810295 Go to http://127.0.0.1:9332/ to view graphs and statistics!
2013-04-28 17:32:34.810335 Donating 1.0% of work towards P2Pool's development. Thank you!
2013-04-28 17:32:34.810362 You can increase this amount with --give-author argument! (or decrease it, if you must)
2013-04-28 17:32:34.810387
2013-04-28 17:32:37.811070 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2013-04-28 17:32:37.811375  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2013-04-28 17:32:52.819144 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2013-04-28 17:32:52.819388  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2013-04-28 17:33:07.830289 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming)
2013-04-28 17:33:07.830530  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???


编写启动脚本实现开机自动运行比特币客户端和矿池:
 

nano /etc/init.d/bitcoind
nano /etc/init.d/p2poold


内容:

 

#!/bin/sh
/root/bitcoin-0.8.1-linux/bin/64/bitcoind

#!/bin/sh
python /root/p2pool-master/run_p2pool.py --bitcoind-address 127.0.0.1 --bitcoind-rpc-port 8332 --bitcoind-p2p-port 8333 --address 1JYZZihUfuQHv2MC4BfPzpsaPP7A6D3AQa --worker-port 9332 --p2pool-port 9333 --fee 0 --give-author 0.0

chmod +x /etc/init.d/bitcoind
chkconfig --add bitcoind

chmod +x /etc/init.d/p2poold
chkconfig --add p2poold


【忽略不执行】
chkconfig bitcoind on
chkconfig p2poold on
执行reboot命令,系统启动后,p2poold将自动运行。


Bitcoin矿池地址:
127.0.0.1:9332
矿工帐号任意字符或者空,密码为空或者任意字符

Cgminer(挖矿程序)中,矿工帐号设置为空,密码设置为之前的rpcpasseord中设定的字符,矿池服务器地址:127.0.0.1,端口:9332

miner.bat【Windwos OS】:

D:\cgminer-2.11.4-windows\cgminer-2.11.4-windows\cgminer.exe -o http://192.168.1.217:9332 -u -1 -p mima123


【Linux OS】:
cgminer -o http://192.168.1.217:9332 -u -1 -p mima123

在浏览器中也可以打开:
http://127.0.0.1:9332
可以查看当前状态等信息。

【至此,矿池后端成功搭建】


cd /root
wget https://github.com/hardcpp/P2PoolExtendedFrontEnd/archive/master.zip
unzip master.zip
解压缩后把全部文件放到web-static目录内:
/root/p2pool-master/web-static

BTC/比特币/Bitcoin帐号/钱包地址:
1JYZZihUfuQHv2MC4BfPzpsaPP7A6D3AQa
【欢迎大家提供捐助】

选项和帮助:
python run_p2pool.py --help





litecoin.conf
/root/.litecoin/litecoin.conf
server=1
rpcpassword=990919b95e804cc4658d677d8c19571
rpcport=10332
port=10333

cd /root
wget https://github.com/downloads/litecoin-project/litecoin/litecoin-0.6.3c-linux.tar.gz
tar zxvf litecoin-0.6.3c-linux.tar.gz


运行:
/root/litecoin-0.6.3c-linux/bin/64/litecoind


运行:
python run_p2pool.py --net litecoin

python /root/p2pool-master/run_p2pool.py --net litecoin --bitcoind-address 127.0.0.1 --bitcoind-rpc-port 10332 --bitcoind-p2p-port 10333 --address LbkxQvdoaMaBV5PQ1PeiZuXn99BG7KPtp6 --worker-port 9327 --p2pool-port 9338 --fee 0 --give-author 0.01
Litecoin矿池地址:
127.0.0.1:9327



编写启动脚本实现开机自动运行比特币客户端和矿池:

nano /etc/init.d/litecoind
nano /etc/init.d/p2poold

#!/bin/sh
/root/litecoin-0.6.3c-linux/bin/64/litecoind

#!/bin/sh
python /root/p2pool-master/run_p2pool.py --net litecoin --bitcoind-address 127.0.0.1 --bitcoind-rpc-port 10332 --bitcoind-p2p-port 10333 --address LbkxQvdoaMaBV5PQ1PeiZuXn99BG7KPtp6 --worker-port 9327 --p2pool-port 9338 --fee 0 --give-author 0.01

chmod +x /etc/init.d/litecoind
chkconfig --add litecoind

chmod +x /etc/init.d/p2poold
chkconfig --add p2poold

【忽略不执行】
chkconfig litecoind on
chkconfig p2poold on
执行reboot命令,系统启动后,p2poold将自动运行。

——————————————————————————————————
——————————————————————————————————

Bitcoin/Litecoin矿池搭建教程【Windows环境】

后端:
https://github.com/forrestv/p2pool/
http://u.forre.st/u/drxlzowj/p2pool_win32_11.3.zip
前端:
https://github.com/hardcpp/P2PoolExtendedFrontEnd

具备条件:
> Bitcoin钱包程序(客户端):http://www.bitcoin.org/
> MinGW【Windows平台 C语言编译器】:
http://www.mingw.org/wiki/Getting_Started
http://sourceforge.net/projects/mingw/files/
http://sourceforge.net/projects/mingw-w64/
http://sourceforge.net/projects/mingw/files/Installer/mingw-get/
http://sourceforge.net/projects/mingw/files/Installer/mingw-get-inst/
> MinGW备用方案 - Cygwin:
http://www.cygwin.com/
http://www.cygwin.com/install.html
http://www.cygwin.com/mirrors.html
http://x.cygwin.com/
http://x.cygwin.com/screenshots/
> Python:http://www.python.org/
> zope.interface for Python:
https://pypi.python.org/pypi/zope.interface
http://docs.zope.org/zope.interface/
https://pypi.python.org/pypi/zope.interface/4.0.5
> Twisted for Python:http://twistedmatrix.com/trac/
> python-argparse / argparse for Python:
https://code.google.com/p/argparse/
https://pypi.python.org/pypi/argparse
> litecoin_scrypt for Python:
https://github.com/forrestv/p2pool/tree/master/litecoin_scrypt
https://github.com/Tydus/litecoin_scrypt
https://github.com/CryptoManiac/stratum-mining-proxy/tree/master/litecoin_scrypt

——————————————————————————————————
C:\Users\用户名\AppData\Roaming\Bitcoin\bitcoin.conf:
server=1
rpcpassword=f8437ea640fc1557d69e2aa61480c653
rpcport=8332
port=8333

p2pool.bat:

D:\p2pool_win32_11.2\p2pool_win32_11.2\run_p2pool.exe --bitcoind-address 127.0.0.1 --bitcoind-rpc-port 8332 --bitcoind-p2p-port 8333 --address 1JYZZihUfuQHv2MC4BfPzpsaPP7A6D3AQa --worker-port 9332 --p2pool-port 9333 --fee 0 --give-author 0.0


miner.bat:

D:\cgminer-2.11.4-windows\cgminer-2.11.4-windows\cgminer.exe -o http://127.0.0.1:9332 -u -1 -p mima123


C:\Users\用户名\AppData\Roaming\Litecoin\litecoin.conf:
server=1
rpcpassword=990919b95e804cc4658d677d8c19571
rpcport=10332
port=10333

p2pool2.bat:

D:\p2pool_win32_11.2\p2pool_win32_11.2\run_p2pool.exe --net litecoin --bitcoind-address 127.0.0.1 --bitcoind-rpc-port 10332 --bitcoind-p2p-port 10333 --address LbkxQvdoaMaBV5PQ1PeiZuXn99BG7KPtp6 --worker-port 9327 --p2pool-port 9338 --fee 0 --give-author 0.01


miner2.bat:

D:\cgminer-2.11.4-windows\cgminer-2.11.4-windows\cgminer.exe --scrypt -o http://127.0.0.1:9327 -u -1 -p mima123


FrontEnd:
https://github.com/hardcpp/P2PoolExtendedFrontEnd/archive/master.zip
解压缩后把全部文件放到web-static目录内:
D:\p2pool_win32_11.2\p2pool_win32_11.2\web-static

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有