ethereum / go-ethereum

Go implementation of the Ethereum protocol
https://geth.ethereum.org
GNU Lesser General Public License v3.0
47.11k stars 19.93k forks source link

geth private network configure #28737

Open KevinTMitnick opened 8 months ago

KevinTMitnick commented 8 months ago

Hello, I used geth (1.13.0 table) to set up a private network,and found that only the set cosinbase is not effective, and there is only one transaction in a block, which causes slow transaction packaging when I use scripts for batch transfers. How to solve this problem

MariusVanDerWijden commented 8 months ago

It's not easy to debug this without more information. You seem to be able to mine blocks, so somehow the coinbase should be set. I assume you are using clique. With clique you can not change the coinbase via setEtherbase, you can only change it if you change the signing key.

Regarding your second issue, not being able to mine multiple transactions in a block. Are you sending multiple transactions from the same account or different accounts? Do you have any log outputs for your batch sending? Are you setting the nonces correctly in your script?

phpmac commented 3 months ago

What's the latest situation? Can multiple nodes be synchronized?