Blackrose's Blog Blackrose's Blog

how to mining as p2pool method

in technologyread (179) 文章转载请注明来源!

自从加入挖矿大军后,就不断地尝试各种方法去挖矿,江湖传言,p2pool挖矿是比较难的方法之一,主要在于配置繁杂。下面是我配置p2pool挖矿的步骤,仅供参考。

1.Install three software packages

These are cgminer, bincoin client and p2pool.You can find it on google or github.Just install these follow each steps.

2.Prepare work1

Firstly, sync all block data from internet, when you intalled bitcoin client.This may be spent some hours.A tip, you need have a space disk to store these block data.I recommend you use next command:

bitcoin-qt -datadir=/media/work1/btcblock

The block data will store to btcblock directory in here.

Secondly, configure your bitcoin client as a server.Here, you need to write a config file and put it under btcblock directory.

bitcoin.conf
rpcuser=abc
rpcpassword=123
server=1

Next is restart bitcoin client.

bitcoin-qt -conf=/media/work1/btcblock/bitcoin.conf -datadir=/media/work1/btcblock -server

3.Prepare work2

Thirdly, execute the p2pool software.

python run_p2pool.py -a your_bitcoin_addr abc 123

That bitcoin addr was created by bitcoin client.You must be write correct rpcuse and rpcpasword.The reason is bitcoin doesn't use default directory as work directory to store config file and block data.

When you see three "success" words, congratulates!

4.Use cgminer to mining

I write a config file instead of parameters.

{
"pools" : [
{
"url" : "127.0.0.1:9332",
"user" : "123",
"pass" : "p2pool"
}
]
}

Save it as p2pool.conf and execute next command:

cgminer -G -c p2pool.conf -S /dev/ttyUSB0

Here, i use Icarus as a miner.That user and pass value is which you want to write.It's not important.

文章二维码

扫描二维码,在手机上阅读!

发表新评论
博客已萌萌哒运行
© 2018 由 Typecho 强力驱动.Theme by Yodu
前篇 后篇
雷姆
拉姆