Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geth命令的参数错误 #16

Open
liuqinglqlq opened this issue Jun 8, 2022 · 0 comments
Open

geth命令的参数错误 #16

liuqinglqlq opened this issue Jun 8, 2022 · 0 comments

Comments

@liuqinglqlq
Copy link

第5章中的“启动一条以太坊私链”
其中geth命令的多个参数已经过时,得用新的参数名称

--rpc 改为 --http
--rpcaddr 改为 --http.addr
--rpcport 改为 --http.port
--rpccorsdomain 改为 --http.corsdomain
--rpcapi 改为 --http.api
--minerthreads 改为 --miner.threads
--etherbase 改为 --miner.etherbase

修改过后的命令行是这样
geth --datadir ./db/ --http --http.addr=127.0.0.1 --http.port 8545 --http.corsdomain "*"
--http.api "eth,net,web3,personal,admin,shh,txpool,debug,miner"
--nodiscover --maxpeers 30 --networkid 198989 --port 30303
--mine --miner.threads 1
--miner.etherbase "0x7df9a875a174b3bc565e6424a0050ebc1b2d1d82"
console

另外,现在挖到矿之后,只会显示 mined potential block
而不再有小锤子的图标

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant