-
Notifications
You must be signed in to change notification settings - Fork 57
Start a miner
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/gmc /usr/bin
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/gmc /usr/bin
gmc console
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 Gmc 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)
admin.peers
personal.newAccount()
miner.start()
miner.stop()
miner.setEtherbase(YOUR_ACCOUNT)
// check coinbase balance
web3.fromWei(eth.getBalance(eth.coinbase), "ether")
// to send funds
eth.sendTransaction({from:eth.accounts[0], to:"address", value: web3.toWei(*amount*, "ether")})
#GPU Mining It is possible to GPU mine this coin, although you will not be able to use the GMC 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 GMC to allow you to use an external miner to connect.
This is accomplished by the following commands:
gmc --rpc --rpcaddr "127.0.0.1" --rpcport 8545
Once gmc 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
gmc --rpc --rpcaddr "Your.Device.Address.Here" --rpcport 8545
Once gmc 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 gmc will alert you when a block has been accepted.
###Windows quick-start If you want to get mining as fast as possible on a windows build, these instructions should help you along.
Move the gmc.exe file to your desktop
Once it's on your desktop, right click on gmc.exe, and make a shortcut.
Once you have a shortcut made, right click the shortcut, go to properties, and in the field that says Target, tack this bit of code onto the end of it:
--rpc --rpcaddr "ip.address.goes.here" --rpcport 8545
Then apply the settings, close whatever instance of gmc you have up, and open the shortcut.
Then run ethminer (which you learned how to configure above) after it syncs.