P2Pool linux下安装运行
来源:互联网 发布:广州linux运维培训 编辑:程序博客网 时间:2024/05/21 02:48
P2Pool
What is P2Pool?
P2Pool is a decentralized Bitcoin mining pool that works by creating a peer-to-peer network of miner nodes.
Download P2Pool
Windows
You can also download the source as tar/zipballs on GitHub.
Linux
sudo apt-get install git # if git is not installedgit clone https://github.com/forrestv/p2pool.gitcd p2poolmake
- Python >=2.6
- Twisted >=10.0.0
- python-argparse (for Python =2.6)
wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz
cd Python-2.7.8./configure --prefix=/opt/python2.7 --enable-shared --enable-unicodemake allmake install
修改lib环境变量vi /etc/ld.so.conf.d/python.conf增加:/opt/python2.7/lib生效:ldconfig查看安装的新版本信息 /opt/python2.7/bin/python2 -VPython 2.7.7
server=1rpcuser=bitcoinrpcrpcpassword=bitcoin客户端配置的连接密码(在bitcoin data目录下bitcoin.conf)
sudo apt-get install python-twisted python-argparse # should work on Ubuntu
Mac OS X
Using git is preferable, but you can also download tar/zipballs on GitHub.
brew install git
Then download and install p2pool:下载并安装p2pool
git clone https://github.com/forrestv/p2pool.gitcd p2poolmake
The following packages are required, and will be automatically installed when you run 'make':
- Python >=2.6
- Twisted >=10.0.0
- python-argparse (for Python =2.6)
Getting started
- Running a Bitcoin node (Bitcoin-Qt or bitcoind).
- Running P2Pool on the same machine (will fetch blocks data from bitcoind).
- Running Bitcoin miners (will fetch work from P2Pool).
- 运行bitcoin节点(Bitcoin-Qt or bitcoind)
- 在bitcoind所在的主机上运行p2pool(通过bitcoind取block数据)
1. Setup Bitcoin-Qt or bitcoind
Download and install Bitcoin-Qt or bitcoind. Initial synchronization will likely take more than a day to complete. For this reason, it is generally a good idea to complete this step in advance.
server=1rpcuser=bitcoinrpcrpcpassword=TzYuyH10pJWXnKqXs8ehkX5DQ7jGx0PD1kjaJY7HUtKAKGOaXyN3wVNZGFLLWlR8q8jNYnZVAoB8hCHOCJ1MwSxIzW2tGDhZplct
2. Run P2Pool
Download P2Pool and execute run_p2pool.exe (Windows) or 'make run' (Linux/OS X/source).
2014-01-09 17:15:45.075550 P2Pool: 0 shares in chain (0 verified/3133 total) Peers: 5 (0 incoming)2014-01-09 17:15:45.075662 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???
2014-01-09 17:16:49.525335 P2Pool: 8698 shares in chain (57 verified/8698 total) Peers: 5 (0 incoming)2014-01-09 17:16:49.525422 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???2014-01-09 17:16:49.525476 Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.0000 BTC2014-01-09 17:16:49.525510 Pool: 115TH/s Stale rate: 12.4% Expected time to block: 14.7 hours
3. Run miners
4. Watch
FAQ
What are the requirements to run P2Pool?
- A PC with enough memory to run Bitcoin-Qt
- A good Internet connection with low latency greatly helps to increase efficiency
- A miner supporting getwork or Stratum interfaces (more than 40GH/s advised)
What are P2Pool's fees?
By default, P2Pool receives 1% to fund P2Pool's development. This fee is optional, but very welcome and useful.
How good are P2Pool payouts?
Payouts should be the same as other pools with a higher variance (payouts are inconsistently smaller or larger days after days). Payouts can even be slightly higher because blocks propagation time is sometime faster on P2Pool. It also happens that people are sending bitcoins to P2Pool miners to encourage miners to support P2Pool.
What are the advantages of using P2Pool?
- Small statistical advantages increasing income
- Control over your own pool node
- No need to trust a pool operator
- Immediate payments
- Helps to protect and keep the Bitcoin network decentralized
What are the disadvantages of using P2Pool?
- Initial setup is a little more complicated
- More CPU / RAM / Internet bandwidth required
- Higher payout variance
- Small transaction fees when spending if you receive many small payouts
Why does P2Pool have so many orphaned / dead / rejected shares?
Miners' payouts are not affected so long as they have a proportional number of rejected shares to other miners. A new share is found every 30 seconds on average with P2Pool's sharechain. This means reorganizations happen more often and miners must have a good network connection in order to receive last shares within a short time.
How to mine with Litecoin?
You should go through the same steps as if you were mining with Bitcoin, except that you should:
- Install Litecoin instead of Bitcoin.
- Provide the "--net litecoin" option to run_p2pool.
- Use port 9327 with your miner.
Useful links
Bitcoin wiki page
Bitcoin forum thread
GitHub page
Pool statistics
Sponsors
Thanks to the Bitcoin Foundation for its generous support of P2Pool.
Thanks to the Litecoin Project for its generous donations to P2Pool.
- P2Pool linux下安装运行
- Linux下安装比特币矿池p2pool笔记
- linux下安装运行LoadrGenerator
- 安装自己的山寨币矿池(p2pool类型)
- Linux环境下安装运行JSP/servlet
- linux下安装java运行环境
- 在Linux下安装运行Eclipse
- Linux下Telnet的安装与运行
- Linux下Telnet的安装与运行
- linux下安装和运行wireshark
- linux下oracle安装运行常见问题
- Linux下安装FastCV 运行samples
- Linux下Telnet的安装与运行
- Linux下安装、卸载、运行软件包
- linux下安装和运行wireshark
- linux下安装和运行wireshark
- linux下安装和运行wireshark
- Linux下Telnet的安装与运行
- 算法导论学习笔记-5.4 概率分析和指示器随机变量的应用-几个有趣的问题
- hdu1754 线段树
- 代码大全的“变量命名的力量”总结
- C# Java间进行RSA加密解密交互(二)
- 推荐三款强大且漂亮的统计图控件
- P2Pool linux下安装运行
- 并发语言
- Mybatis入门
- 数据存储(一)--SharedPreferences之你不知道的事
- Java线程池
- jenkins配置slave
- TFT 调试笔记
- Android界面适配机制
- 设计模式学习笔记——工厂方法模式