【以太坊开发】 问题 etherbase must be explicitly specified

1.  使用geth启动在私有链环境下,提示如下问题:

[html]  view plain  copy
  1.  Updated mining threads  threads=0  
  2. INFO [08-17|21:31:30] Transaction pool price threshold updated price=18000000000  
  3. ERROR[08-17|21:31:30] Cannot start mining without etherbase    err="etherbase address must be explicitly specified"  
  4. Error: etherbase missing: etherbase address must be explicitly specified  
  5.     at web3.js:3104:20  
  6.     at web3.js:6191:15  
  7.     at web3.js:5004:36  
  8.     at <anonymous>:1:1  
原因是当前环境没有账户,需要建立一个账户

解决:personal.newAccount("xxx"), 这里创建一个新账户, 注意有的同学会疑问以前都有账户啊,怎么现在没啦,可能你启动geth的路径有问题,

路径不对,这里账户也是不正确的哦,仔细检查。

你可能感兴趣的:(区块链/以太坊/比特币)