Home | 简体中文 | 繁体中文 | 杂文 | 知乎专栏 | 51CTO学院 | CSDN程序员研修院 | Github | OSChina 博客 | 腾讯云社区 | 阿里云栖社区 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏多维度架构

第 17 章 FAQ

目录

17.1. Error: etherbase missing: etherbase address must be explicitly specified
17.2. FAQ
17.3. Error: authentication needed: password or unlock
17.4. 新增节点后不生效
17.5. Unhandled rejection Error: Returned error: The method personal_unlockAccount does not exist/is not available
17.6. Error: exceeds block gas limit
17.7. Migrations.sol:11:3: Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
17.8. Exception in thread "main" rx.exceptions.OnErrorNotImplementedException: Invalid response received: okhttp3.internal.http.RealResponseBody@6c25e6c4
17.9. 旧版本 Remix(browser-solidity) 本地安装

17.1. Error: etherbase missing: etherbase address must be explicitly specified

		
ERROR[02-10|16:12:45] Cannot start mining without etherbase    err="etherbase address must be explicitly specified"
Error: etherbase missing: etherbase address must be explicitly specified
    at web3.js:3143:20
    at web3.js:6347:15
    at web3.js:5081:36
    at <anonymous>:1:1		
		
		

原因是当前环境没有账户,需要建立一个账户

		
> personal.newAccount("chen")
"0x1b94732fca6f62a4f74fb2f7c80bfc89d567fdfb"
		
		

现在启动挖矿就不会出现问题了