下载以太坊钱包客户端
入口:https://github.com/ethereum/mist/releases
下载以太坊钱包客户端:https://github.com/ethereum/mist/releases/download/v0.8.9/Ethereum-Wallet-win64-0-8-9.zip
下载后解压缩:暂定路径F:\Ethereum-Wallet-win64-0-8-9\
建立软链接
以太坊钱包数据默认存放路径:C:\Users\FCJ\AppData\Roaming\Ethereum Wallet
以太坊区块链数据默认存放路径:C:\Users\FCJ\AppData\Roaming\Ethereum
以太坊挖矿数据默认存放路径:C:\Users\FCJ\AppData\Ethash
建立以太坊钱包数据软链接:mklink /j C:\Users\FCJ\AppData\Roaming\“Ethereum Wallet” F:\Ethereum-Wallet-win64-0-8-9\“Ethereum Wallet”
建立以太坊区块链数据软链接:mklink /j C:\Users\FCJ\AppData\Roaming\Ethereum F:\Ethereum-Wallet-win64-0-8-9\Ethereum
建立以太坊挖矿数据软链接:mklink /j C:\Users\FCJ\AppData\Ethash F:\Ethereum-Wallet-win64-0-8-9\Ethash
在以太坊钱包客户端安装目录下创建文件夹:Ethereum Wallet、Ethereum、Ethash
启动以太坊钱包客户端
退出以太坊钱包客户端
自定义创世区块
暂定路径:F:\Ethereum-Wallet-win64-0-8-9\genesis.json
如下内容适用geth版本:1.6.6
{
"config": {
"chainId": 10,
"homesteadBlock": 0,
"eip155Block": 0,
"eip158Block": 0
},
"alloc" : {},
"coinbase" : "0x0000000000000000000000000000000000000000",
"difficulty" : "0x02000000",
"extraData" : "",
"gasLimit" : "0x2fefd8",
"nonce" : "0x0000000000000042",
"mixhash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"parentHash" : "0x0000000000000000000000000000000000000000000000000000000000000000",
"timestamp" : "0x00"
}
初始化创世区块
清空C:\Users\FCJ\AppData\Roaming\Ethereum下内容,否则会报:Fatal: Failed to write genesis block: database already contains an incompatible genesis block
启动cmd
cd C:\Users\FCJ\AppData\Roaming\Ethereum Wallet\binaries\Geth\unpacked
geth init F:\Ethereum-Wallet-win64-0-8-9\genesis.json
创建并启动以太坊本地私有开发测试网络
在以太坊钱包客户端安装目录下创建文件夹:dev
启动本地私有开发测试网络:geth --rpc --rpccorsdomain "*" --datadir F:\Ethereum-Wallet-win64-0-8-9\dev --dev --rpcapi "db,eth,net,web3" --networkid 9999 console 2>>F:\Ethereum-Wallet-win64-0-8-9\console.log
启动以太坊钱包客户端
提示:PRIVATE-NET
创建帐号(默认即主帐号)
启动挖矿
启动挖矿:geth命令行下执行miner.start(10)
停止挖矿:miner.stop()
参考文档
geth配置中,genesis.json的几个问题
http://blog.csdn.net/superswords/article/details/75049323
网友评论