二进制

#https://github.com/openethereum/openethereum
# –chain xdai 表示同步xdai区块链数据,默认同步xdai主网
# –ws-max-connections=10表示最大连接数,请根据需要修改
./openethereum --chain xdai --jsonrpc-port=8545 --jsonrpc-cors=all --jsonrpc-interface=all --jsonrpc-hosts=all --jsonrpc-apis=web3,eth,net,parity --ws-interface=all --ws-apis=web3,eth,net,parity,pubsub --ws-origins=all --ws-hosts=all --ws-max-connections=10 --max-peers=100

docker

docker run -itd --name "xdai" openethereum/openethereum:latest \
--chain xdai --jsonrpc-port=8545 --jsonrpc-cors=all \ --jsonrpc-interface=all --jsonrpc-hosts=all --jsonrpc-apis=web3,eth,net,parity \
--ws-interface=all --ws-apis=web3,eth,net,parity,pubsub \
--ws-origins=all --ws-hosts=all --ws-max-connections=10 --max-peers=100 \
-v /mnt/xdai/:/home/openethereum/.openethereum/

当 Nethermind 开始显示 “Processed” 的时候,就说明你的节点已经完成同步了

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code