Ethereum

I was sitting through a really long meeting today, and at the end of it a co-worker told me he was mining Ethereum. I used to mine bitcoins, but didn’t realize we could mine ether as well. So I gave it a shot tonight. Ethereum is the second in line for the upcoming best crypto-currency. It’s value is still semi-low, but I think it has much more potential than Bitcoin. The results are pretty neat.

  1. First, I realized we need to install a client. I do everything by command line. I am not a GUI person by any means so, the first step is to go to https://geth.ethereum.org/downloads/ and download the Windows client. This will at a minimum get you on the Ethereum network and contributing.
  2. GPU mining! This is what I am interested in. So the obvious next step is to go to https://github.com/ethereum-mining/ethminer/releases and download the Windows zip and unzip it. A fair word of advise, if you have Norton Security Suite installed, it WILL delete the ethminer binary several times until you disable all the checks. It is obnoxious like that
  3. Finally, the commands!
    1. Open a cmd prompt as Administrator
      1. geth account new
    2. Open a cmd prompt as Administrator
      • geth --rpc
    3. Open another prompt as Adminstrator
      • ethminer -G --opencl-platform 1I originally has -G but it gave a No GPU found, so I added the opencl-platform 1 and it found my GTX 1080 just fine
      • You may need to fully quantify the path. It depends if you set the directory up in your windows path or not. I’m not getting into that in this post. It should be common sense how to do that.

What is happening with these commands??

  • The geth command essentially is a client to the network. It allows for you to join the ethereum network and participate.
  • The ethminer command allows you to mine ether, which are the fuel for ethereum.

Ok, so I am doing this and I see a shit ton of output. What does it mean?

Nifty, so how do I run those scripts?

  • Simple! Download those scripts somewhere on your hard drive
  • Open yet another cmd windows as Administrator
  • Type: geth attach
  • Type: loadScript("C:/ether/checkbalances.js")
  • Type: loadScript("C:/ether/sendEther.js")
  • Type: checkAllBalances();
  • Type: sendEtherToCoinbase();
    • Word of caution, I left my address in the code, so if you don’t change the to: address, it’ll go to me and not you 😉 Always check the code you download before you use it.

So yeah, that is where I am with Ethereum mining, tracking and receiving moneys.

 

Below are some screenshots, if you think I lie.

Geth Client:

Mining:

Scripts:

Some random personal opinions*

  • I have been playing with geth for only a night, but Im understanding that is it based on Node.JS. If so, I have some questions about that. So far the geth –rpc window stalls quite often.  In my other window when I run a simple checkAllBalances() it takes upwards of 10 minutes to come back with a reply. It always comes back, but I thought the nature of Node.JS was NOT to block threads or transactions. Yet more times than not during my night test, it has blocked upwards of 10 transactions so far. I would highly suggest to the developers of geth to utilize Node.JS to its true potential or choose a different language they know how to write non-blocking transactions. Node.JS is mainly advertised as a non-blocking way to write code, yet with geth I am always waiting for some transaction or code block to execute. Fellows, this is not how it should be.

Leave a Reply

Your email address will not be published. Required fields are marked *