Skip to content
This repository has been archived by the owner on Jan 5, 2021. It is now read-only.

Start a miner

Chance567 edited this page Feb 11, 2017 · 14 revisions

Option 1: Download released program

Get most recent release: running up GMC(change the URL accordingly):

wget https://github.com/Musicoin/go-musicoin/releases/download/0.2.1/gmc  
sudo chmod +x gmc
sudo cp build/bin/geth /usr/bin

Option 2: Compile from source

You may need to install Go if you don't have Golang in your system.

git clone https://github.com/Musicoin/go-musicoin.git
cd go-musicoin
make gmc

After it is successfully compiled, copy it so user can access it from any location of the machine.

cp build/bin/geth /usr/bin

Run GMC

gmc console

adding default nodes as peers

Once it runs up, it may not sync unless you add some live nodes, we have 2 genesis node as reference nodes but you can definitely add from other sources.

>admin.addPeer("enode://ba2f6409f9894c12f5aad3471b9c4a2e7999b246af775c39f99d85b020cfc95d0b0dc6dd0985895bb2c4149cb45e4a3c17f7585be326cec293176bf81802a987@104.196.160.105:30303")
>True
>admin.addPeer("enode://58703aae65e704576a95079b9814cf98f4e20294d9d21f444540c1b83d98353f1228caa7eec3fabfe52c094deffd0e33f0004e8631415a4f0d7c6fba6788bec0@104.197.56.66:30303")
>True  

If you can't find any peers added successfully, try more enodes to see if they are friendly to be your peers.

#Let's Mine in Geth console, create a new coinbase account:

> personal.newAccount()

after inputting pass code twice, you will get an address like 0x5e2121785ca34d63ebe37e15612984bfb9368878, you can start mining now with:

>miner.start()

Now you can get some syncing and DAG generating process then see miner start working. (Note: Before you start mining, best exit the console and go to backup this wallet at ~/.ethereum/keystores . Save the key file to other places to make sure you can access the balance from other wallets)

#GPU Mining It is possible to GPU mine this coin, although you will not be able to use the Geth interface directly to mine unless you compile it with OpenCL allowed.

Our best advice is to use Genoil's Ethminer, as it provides support for both Nvidia and AMD cards.

Once you have the program, you will need to set Geth to allow you to use an external miner to connect.

This is accomplished by the following commands:

SOLO MINING (1 PC)

geth --rpc --rpcaddr "127.0.0.1" --rpcport 8545

Once geth has synced with the blockchain, launch the miner using the following parameters:

ethminer -G -F http://127.0.0.1:8545 -O wallet name here

SOLO MINING (LAN pool)

geth --rpc --rpcaddr "Your.Device.Address.Here" --rpcport 8545

Once Geth has synced with the blockchain, launch the miner using the following parameters:

ethminer -G -F http://"IP.Address.of.Host":8545 -O wallet name here

You will see ethminer generating the DAG files and work will begin. Both ethminer and geth will alert you when a block has been accepted.