准备工作:下载源码并编译
git clone http://47.108.48.123/BAISS/go-baiss make geth
1、创建genesis.json
使用默认ethash(POW),不使用Clique(POA)
{
"config": {
"chainId": 58615,
"homesteadBlock": 0,
"eip150Block": 0,
"eip155Block": 0,
"eip158Block": 0,
"byzantiumBlock": 0,
"constantinopleBlock": 0,
"petersburgBlock": 0,
"ethash": {}
},
"difficulty": "2000",
"gasLimit": "2100000",
"alloc": {
"1FBA2d26daCDe675ae57fa5A97630Afeff3b63A6": { "balance": "3000000000000000000" },
"bf949252fDD5bEe1F7a8b378A6B2b03e45bc43B9": { "balance": "4000000000000000000" }
}
}
2、初始化
./build/bin/geth --datadir ./ryandata init genesis.json
3、 启动若干成员节点(挖矿的或者提供rpc调用的,也可以放在一起)
miner.etherbase是自动挖矿地址
./build/bin/geth --datadir ryandata --networkid 58615 --port 30303 --bootnodes "enr:-J24QHRCS4sy4XNEZTg6lfHtsCNTGKIyHNk6rFneRr4tubc4DMxepbCpz4Qbg5H4z16daR-YcngyeL_P1K3oDsz-SCkCg2V0aMfGhIq4M0KAgmlkgnY0gmlwhMCobqiJc2VjcDI1NmsxoQIQs03mSu32YrYagHZrcJGel3_3Bx2WN07xjCgXefz8fIRzbmFwwIN0Y3CCdl-DdWRwgnZf" --syncmode fast --identity "P1" --mine --miner.threads=1 --miner.etherbase=0x9f4f27a47946ed467E0Fd32AADA1bB228F186C3E --rpc --rpcaddr "0.0.0.0" --rpcport "8545" --rpccorsdomain "*" --rpcapi "eth,net,web3,miner,net,personal,net,txpool,admin,debug" --allow-insecure-unlock
4、检查是否连接到其它节点
./build/bin/geth attach ryandata/geth.ipc --exec admin.peer