【发布时间】:2021-10-06 10:21:31
【问题描述】:
我正在使用 Mastering Blockchain - 深入研究分布式账本、共识协议、智能合约、DApps、加密货币、以太坊一书,
开始区块链开发我正在使用带有 geth 版本 1.10.9 的 WSL。
$geth version
Geth
Version: 1.10.9-stable
Git Commit: eae3b1946a276ac099e0018fc792d9e8c3bfda6d
Architecture: amd64
Go Version: go1.17
Operating System: linux
GOPATH=
GOROOT=go
我正在尝试启动 geth,但我收到了 --rpc 标志未定义的错误。
这是我要运行的命令:
geth --datadir ~/etherprivate/ --networkid 786 --rpc --rpcapi 'web3,eth,net,debug,personal' --rpccorsdomain '*'
对我如何解决它有任何帮助吗?
【问题讨论】:
-
试试
geth --help我没有在这个版本的文档中找到rpc标志 -
请下次 1) 使用ethereum.stackexchange.com 2) 不要用
go标记此类问题,因为它们与Go 编程无关,blockchain与相关技术无关而是关于使用特定程序的问题。谢谢! -
好的,下次我会考虑做的。
标签: geth