智能
助手
最大化  清空记录 停止  历史记录
翻译选中文本
选中一段文本后进行翻译
名词解释
选中一段文本后进行名词解释
知识图谱生成
通过图谱展示知识信息
登录用户在知识浏览页面可用
答案生成
AI自动回答一个问答功能中的问题
登录用户在问答浏览页面,且问题开放回答中可用
知识摘要
自动为当前知识生成摘要
知识浏览页面可用
知识问答
针对当前知识进行智能问答
知识浏览面可用
2021-07-31 09:17:08 版本 : 搭建xdai侧链节点
作者: 文艺范儿 于 2021年07月31日 发布在分类 / 挖矿 下,并于 2021年07月31日 编辑
 历史版本

备注 修改日期 修改人
格式调整 2021-07-31 09:50:29[当前版本] 文艺范儿
格式调整 2021-07-31 09:47:47 文艺范儿
创建版本 2021-07-31 09:17:08 文艺范儿

官网搭建文档:https://www.xdaichain.com/for-developers/install-xdai-client/parity
RPC接口文档:https://openethereum.github.io/JSONRPC-eth-module#eth_blocknumber

1.下载安装包

mkdir xdai-data
wget https://github.com/openethereum/openethereum/archive/refs/tags/v3.2.6.tar.gz
tar -zxvf v3.2.6.tar.gz

2.更新源

apt-get update

3.没有cargo的 安装cargo 

apt install cargo

4.编译工程

cd openethereum-3.2.6/
cargo build --release --features final

5.启动xdai节点

nohup ./openethereum --chain xdai --port=30303 --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 --base-path=../ xdai-data  >>  ../xdai.log 2>&1  &

6.查看同步状态

可在nohup日志里看或者使用curl访问web3接口查询或使用geth客户端查询

历史版本-目录  [回到顶端]
    文艺知识分享平台 -V 5.2.5 -wcp