ethereum-compass
ethereum-compass copied to clipboard
geth命令的参数错误
第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 而不再有小锤子的图标