为了从集团开始,我遵循geth docs的例子,
https://geth.ethereum.org/docs/fundamentals/private-network
“初始化Geth数据库”一章
但没成功,

有什么东西可以添加配置到genesis.json更多吗?
发布于 2023-02-23 08:20:38
您需要一个签名者(验证器)在您的集团网络。因此,您需要创建一个签名者与geth帐户新,并设置它的coinbase等参数与-解锁命令通过印章。
举个例子,集团印章就在这里:
geth —-datadir <YOUR_GETH_INIT_PATH> --syncmode full --cache <CACHE_MEMORY> --networkid <GENESIS_NETWORK_ID> --port <DISCOVERABLE_MACHINE_PORT> --allow-insecure-unlock --unlock <MINER_PUBLIC_KEY> --password <YOUR_KEYSTORE_PASSWORD>
--mine --snapshot=false --miner.etherbase <MINER_PUBLIC_KEY>
--ws --ws.port <YOUR_WS_PORT> --ws.origins "*" --ws.addr <WS_IP> --http.vhosts="*" --http --http.addr <YOUR_IP> --http.corsdomain "*" --http.port <YOUR_PORT> --http.api personal,eth,net,web3,txpool,miner,rpc,admin,debug通过研究这些参数,您可以得到一个解决方案。
资料来源:https://geth.ethereum.org/docs/fundamentals/command-line-options
祝好运。
https://ethereum.stackexchange.com/questions/145431
复制相似问题