5

I've been running Ethereum-Wallet as my wallet on OSX for a while, and it's fine. It's using /Users/myname/Library/Ethereum as it's data dir.

I've just installed geth via homebrew with a view to trying out some CPU mining (on the real network, not the testnet).

It, too, appears to be using /Users/myname/Library/Ethereum as its data dir, yet still needed to download the blockchain on first use.

I am planning to use a new account to mine to, rather than mine into my main etherbase account.

[Update: it appears that geth has found the same account as Ethereum-Wallet, which makes sense if it's the same data dir. So, if I make a new account for mining, that should work - I think.]

Is there a risk I'll kill my wallet? What am I not getting here?

3

Ethereum Wallet will use the running geth instance if it is already started. You can use the --etherbase {x} parameter to specify which eth.accounts[x] you want to use to mine on.

When you start geth with the --etherbase parameter, you will see a log message showing you which address it is mining to:

coinbase: 0x8d15cd39bdb00d5362775002c342c168ee707400

I have just tested Nikhil's answer of using the actual address instead of the index to eth.accounts[] and both solutions work.

BTW, you should check out the reward stats for CPU (vs GPU) mining in Is CPU mining even worth the Ether? . It's good to check out the mining process, but sorry, you won't get many (any?) ethers using the CPU for mining. Solo mining with your CPU is almost impossible, but if you want to test it out you may have to mine with a pool for minimal earnings.

My 125 megahashes per second 4 GPU rig is struggling to solo mine - I had a gap of 7.5 days when my expected time to mine a block is meant to be 2.5 days.

  • Solo mining with your CPU is almost impossible, yes i agree. – niksmac Apr 12 '16 at 13:01
  • Thanks for that, and for the reality check re CPU mining. It was interesting to get it running, but it's GPU or bust, I guess! – Steve Jalim Apr 12 '16 at 14:20
4

Not necessary, you can run both from the same datadir because even if you choose a different datadir for the wallet, you will have to sync the whole chaindata into both of the datadirs

You are anyway connected to the internet while you are syncing, so if there is any security aspects you suspect will be there even if you simply run a node.

You can specify an address by this command

geth --etherbase "0x23.." // Public address for block mining rewards (default = first account created)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.