$ ./geth account new --datadir ./data
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000a88548e97af8809afac9dc7a930650c1179510590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
===>>>
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000'your new account'0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
4. 修改alloc
中节点地址为自己的新地址,并配置初始余额。至少0x50c783eb9b5c85f2a80000000。
{
"config": {
"chainId": 72,
"homesteadBlock": 0,
"eip150Block": 0,
"eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"istanbulBlock": 0,
"muirGlacierBlock": 0,
"dpos": {
"period": 3,
"epoch": 28800
}
},
"nonce": "0x0",
"timestamp": "0x5fc58968",
"extraData": "0x0000000000000000000000000000000000000000000000000000000000000000a88548e97af8809afac9dc7a930650c1179510590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"gasLimit": "0x280de80",
"difficulty": "0x1",
"alloc": {
"0xa88548e97af8809afac9dc7a930650c117951059": {
"balance": "0x50c783eb9b5c85f2a80000000"
}
},
"number": "0x0",
"gasUsed": "0x0",
"parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
}
$ ./geth init ./genesis.json --datadir ./data