Mining – What Does “geth –mine” Actually Do?

mining

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?

Best Answer

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