Figuring out how to mine ETH

It turns out to be very easy to set up a miner node. There are a few ways to do this:

  1. From the javascript console:
    1. Start the javascript console
      1. geth –verbosity 5 console 2>> /tmp/eth.log
        1. This starts the console with a new geth process
      2. geth attach
        1. This attaches the console to an existing geth process
    2. run the following commands in the javascript console
      1. miner.start(4)
        1. opens 4 threads for mining
      2. miner.stop()
        1. stops mining
  2. From the linux shell
    1. geth –etherbase ‘0xD5c55DF2Ed5320553855aB4D9C9B20448870Fbf2’ –mine 2>>geth.log
      1. The etherbase does not need to be local! It can be any wallet’s hash (the reward from mining will go to this wallet)

In order to mine, your computer’s clock needs to be synchronized to the ntp (Network Time Protocol)

If everything has gone right, in your geth logs you should see “Starting mining operation”

ethermining

 

 

 

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s