Wednesday, August 12, 2015

Quick Guide on How to Mine Ethereum on Windows

ethminer-cuda-pool

Ethereum launched Frontier – the first release of the project including actual mining of Ether with CPU and GPU at the end of last month. The Frontier release comes with a command line only interface with a Javascript environment that allows building, testing, deploying and using decentralized applications on the Ethereum blockchain. Ethereum is being described as a decentralized platform that runs smart contracts: applications that run exactly as programmed without any possibility of downtime, censorship, fraud or third party interference. So far the available code is mostly intended for developers and though the network is active it is not very user friendly to normal people that might be interested in trying to mine some Ether. Ethereum’s next release named Homestead is supposed to offer in a few months a user friendlily interface for normal users.

We have prepared a short guide that should get you started with Ethereum mining using the Frontier release on Windows and we have prepared the required software to create your own address as well as how you can mine solo or in a mining pool using either your CPU or GPU (OpenCL or CUDA). We want to warn you that although getting started with the basic usage and mining may not be that hard, to be able to take advantage of all of Ethereum’s features you’d need to spend some more time getting to know it as it things are not like with your average Bitcoin clone. We are going to be using geth (source) and ethminer (source), you can download the package containing the Windows binaries for both from the link below then you need to follow the following instructions:

Generating wallet address:
– Open the geth folder and run geth-console.bat to start Ethereum in console mode
– The software will need to download the blockchain data, it can take some time
– In the console type: personal.newAccount("password")
– Instead of password in the quotes above write your own password and remember it well
– In the console type: eth.accounts
– This will list your Ethereum wallet address
– To check your account balance you can type: web3.fromWei(eth.getBalance(eth.coinbase), "ether")

Sending Ether to another wallet:
– In the console type: eth.sendTransaction({from: 'your_address', to: 'recipient_address', value: web3.toWei(1, "ether")})
– In the above code replace your_address and recipient_address with the respective addresses, the example is for sending 1 Ether, but you can change the value depending on your needs

Mining locally on the CPU:
– Run geth-console.bat and to start CPU mining type: miner.start(4)
– The number in the quotes is the number of threads to use
– To stop CPU mining locally type: miner.stop()

Pool mining using ethminer:
– Open the ethminer folder and edit the three bat files with your wallet address
– For CPU mining on the pool run: pool-cpu.bat
– For OpenCL mining on the pool run: pool-ocl.bat
– For CUDA mining on the pool run: pool-cuda.bat

The ethminer software uses the ethpool mining pool for mining, the pool fee is 2% and there is a flat fee of 0.01 Ether per payout charged with minimum payout of 1 Ether, also the pool is beta and there could be some issues. The geth software contains only CPU miner while ethminer supports CPU (up to about 2 times faster than geth CPU mining), OpenCL GPU mining for AMD (also works on Nvidia) and CUDA GPU mining. You can use OpenCL mining on Nvidia GPUs as well, could work on older GPUs that do not work with the CUDA miner.

Mining performance:
– ethminer CPU mining on Intel Core i7 5820K: 0.95 MHS
– ethminer OpenCL mining on AMD Radeon R9 280X: 24.4 MHS
– ethminer OpenCL mining on Nvidia GeForce GTX 980 Ti: 18.5 MHS
– ethminer CUDA mining on Nvidia GeForce GTX 980 Ti: 18.7 MHS

Do note that ethminer is 64-bit only and you need to have Visual C++ 2013 Redistributable installed (the 64-bit version) as it is compiled with Visual Studio 2013 and CUDA 7.5RC. Note that it seems AMD is currently faster mining Ethereum as compared to Nvidia GPUs and CPU mining is not much worth other than for testing purposes anyway.

Download geth and ethminer compiled for Windows and ready to be used…

No comments:

Post a Comment