区块链开发(六)基于以太坊开发常见问题

来源:互联网 发布:ubuntu 32位库 dpkg 编辑:程序博客网 时间:2024/05/28 15:16


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

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

eth.newAccount 返回null , 此时启动miner.start() 会出现此问题

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

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

阅读全文
0 0