[Ethereum] How to mine with geth

go-ethereumminingweb3js

i have downloading blockchain with –syncmode "light" using this command

geth –syncmode "light" –cache 1024 –rpc –rpcaddr 127.0.0.1 –rpcport 8545 –rpccorsdomain * –rpcapi admin,db,eth,debug,miner,net,shh,txpool,personal,web3

and blockchain seems to be up to date with every new block..

Now what should i do to start mining and work with web3 to connect to geth?

Best Answer

In this thread, we had a long discussion how to reduce the size of the chaindata folder when running a node. I suggested to use the Light mode of geth.

However, a light client cannot mine. It does not have the necessary data locally to execute the transactions and perform the consensus. So with a light client, you can broadcast transactions to the network through web3, browse wallets and balances but you can't mine

Related Topic