Failed to write genesis block: database already contains an incompatible
1. 在安装以太坊客户端的时候出现如下错误。
在执行:
geth --datadir "C:\ethereum" init genesis.json 初始化创世块的过程中,遇到如下错误:
“Failed to write genesis block: database already contains an incompatible”
这个是因为已经存在了数据库, 不要重复初始化创世块
解决方法:
把“"C:\ethereum” 目录下的文件删除(把生成的数据库文件删除即可)
2 .如果是执行到
geth --networkid 9999 --datadir C:\ethereum --dev console (启动私链)
出错。
“Failed to write genesis block: database already contains an incompatible”
解决方法:
把“"C:\ethereum\geth\chaindata” 目录下的文件删除(把生成的数据库文件删除即可)