Geth command-line options
I am looking at geth command-line options for miners, specifically:
--miner.gastarget value --miner.gaslimit value
The default value for both is 8000000 on Ethereum according to the documentation. However, I do not understand the documentation description of what they do.
What do these options do exactly when mining blocks?
Etherscan Gas Limit and Gas Used
Blocks on etherscan have a Gas Used and a Gas Limit value. By looking at random blocks, I see that those values are around 12500000. Gas Used is always a percentage of Gas Limit.
What do these values mean exactly? What is their relation with the above geth options, if any?
You would think that both gas limits are the maximum gas that a block would include, but the value on etherscan does not match the geth default value.
You would also think that gas limit on etherscan is the sum of the gas limit of all the transactions in the block, but I do not think that it is the case.
Thanks for the help.