I know this could be a very basic and stupid question, just that I need clarifications for now. Executing geth --mine results in something like below.

Generating DAG in progress epoch=1 percentage=33 elapsed=5m8.892s

Does geth --mine do any mining? If so, if at all mined, will the gas go to the default account?

1 Answer 1


Does geth --mine does any mining?

it's enable mining. The DAG will always be pregenerated if mining is enabled from the CLI using the --mine flag.

if at all mined, will the gas go to the default account?

Yes. If no etherbase set and no account found then geth --mine don't start. (exit with an error)

geth cli options

  • What is meant by enable mining? is there anything else to be done after this to mine?
    – Rajesh
    Commented Oct 26, 2017 at 14:39
  • @Rajesh What is exactly you didn't understand? It's enable mining process, nothing else need to be done. Commented Oct 26, 2017 at 14:42
  • Have studied somewhere that mining is complex process needs to resolve mathematical problems and all, if this command can do the mine, then anyone can mine na. Please correct me if am wrong.
    – Rajesh
    Commented Oct 26, 2017 at 14:48
  • Yes it is. --mine option enable that process, so the geth program starts to mining process Here is a good explanation ethdocs.org/en/latest/mining.html. Commented Oct 26, 2017 at 14:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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