更新于:2019-11-07
更多区块链信息可查看:https://blog.csdn.net/ted_sky/article/details/102932065
ETH Config
geth节点启动命令
进入启动程序目录:/本地源码目录/go-ethereum/build/bin
启动节点命令
主网
./geth --identity "eth" --datadir "/本地源码目录/data" --rpc --rpcapi "db,net,web3,eth,personal,miner" --rpccorsdomain "*" --rpcaddr 0.0.0.0 --rpcport 8545 --networkid 1 console 2>> eth.log
测试网
./geth --testnet --datadir "/本地源码目录/testdata" --rpc --rpcapi "db,net,web3,eth,personal,miner" --rpccorsdomain "*" --rpcaddr 0.0.0.0 --rpcport 8545 --networkid 3 console 2>> eth.log
--testnet表示选择的是ropsten测试网络,如果想要同步rinkeby测试网络,可以更换参数--testnet为--rinkeby
参数名称 | 参数描述 |
---|---|
identity | 区块链的标示,用于标示目前网络的名字 |
nodi |