13.06.2017 Views

Whitepaper - Ethereum Classic With Cover

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Ethereum</strong> <strong>Classic</strong> Documentation, Release 0.1<br />

Using ethminer with geth<br />

geth account new // Set-up ethereum account if you do not have one<br />

geth --rpc --rpccorsdomain localhost 2>> geth.log &<br />

ethminer -G // -G for GPU, -M for benchmark<br />

tail -f geth.log<br />

ethminer communicates with geth on port 8545 (the default RPC port in geth). You can change this by<br />

giving the --rpcport option to geth. Ethminer will find geth on any port. Note that you need to set<br />

the CORS header with --rpccorsdomain localhost. You can also set port on ethminer with -F<br />

http://127.0.0.1:3301. Setting the ports is necessary if you want several instances mining on the same<br />

computer, although this is somewhat pointless. If you are testing on a private chain, we recommend you use CPU<br />

mining instead.<br />

Note: You do not need to give geth the --mine option or start the miner in the console unless you want to do<br />

CPU mining on TOP of GPU mining.<br />

If the default for ethminer does not work try to specify the OpenCL device with: --opencl-device X<br />

where X is {0, 1, 2,...}. When running ethminer with -M (benchmark), you should see something like:<br />

Benchmarking on platform: { "platform": "NVIDIA CUDA", "device": "GeForce GTX 750 Ti", "version":<br />

Benchmarking on platform: { "platform": "Apple", "device": "Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70<br />

To debug geth:<br />

geth<br />

--rpccorsdomain "localhost" --verbosity 6 2>> geth.log<br />

To debug the miner:<br />

make -DCMAKE_BUILD_TYPE=Debug -DETHASHCL=1 -DGUI=0<br />

gdb --args ethminer -G -M<br />

Note: hashrate info is not available in geth when GPU mining.<br />

Check your hashrate with ethminer, miner.hashrate will always report 0.<br />

Using ethminer with eth<br />

Mining on a single GPU<br />

In order to mine on a single GPU all that needs to be done is to run eth with the following arguments:<br />

eth -v 1 -a 0xcadb3223d4eebcaa7b40ec5722967ced01cfc8f2 --client-name "OPTIONALNAMEHERE" -x 50 -m o<br />

• -v 1 Set verbosity to 1. Let’s not get spammed by messages.<br />

• -a YOURWALLETADDRESS Set the coinbase, where the mining rewards will go to. The above address is<br />

just an example. This argument is really important, make sure to not make a mistake in your wallet address<br />

or you will receive no ether payout.<br />

• --client-name "OPTIONAL" Set an optional client name to identify you on the network<br />

• -x 50 Request a high amount of peers. Helps with finding peers in the beginning.<br />

• -m on Actually launch with mining on.<br />

• -G set GPU mining on.<br />

70 Chapter 1. Contents

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!