XRP搭建

1: 安装ripple RPM 存储库

sudo rpm -Uvh https://mirrors.ripple.com/ripple-repo-el7.rpm

2: 安装rippled软件包

sudo yum install –enablerepo=ripple-stable rippled

3: 配置rippled服务以在系统引导时启动

systemctl enable rippled.service

4: 配置rippled.cfg

vim /opt/ripple/etc/rippled.cfg

将原有配置修改为如下配置:

[port_rpc_admin_local]
port = 5005
ip = 0.0.0.0
admin = 0.0.0.0
protocol = http

[port_peer]
port = 51235
ip = 0.0.0.0
# alternatively, to accept connections on IPv4 + IPv6, use:
#ip = ::
protocol = peer

[port_ws_admin_local]
port = 6006
ip = 0.0.0.0
admin = 0.0.0.0
protocol = ws

[node_db]
type=RocksDB
path=/var/lib/rippled/db/rocksdb
open_files=512
filter_bits=12
cache_mb=512
file_size_mb=64
file_size_mult=2
online_delete=70000#将保利账本信息改为最近2天的数据
advisory_delete=0

[ips]
r.ripple.com 51235
52.11.28.194 51235
54.94.245.104 51235
54.201.240.60 51235
54.238.143.216 51235
#开启节点验证(测试链不支持签名验证)
[signing_support]
true

5: 启动服务

sudo systemctl start rippled.service

6.测试链

vim /opt/ripple/etc/validators.txt

#[validator_list_sites]
#https://vl.ripple.com

#[validator_list_keys]
#ED2677ABFFD1B33AC6FBC3062B71F1E8397C1505E1C42C64D11AD1B28FF73F4734

# To use the XRP test network (see https://ripple.com/build/xrp-test-net/),

# use the following configuration instead:

[validator_list_sites]
https://vl.altnet.rippletest.net

[validator_list_keys]
ED264807102805220DA0F312E71FC2C69E1552C9C5790F6C25E3729DEB573D5860
0

评论0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
没有账号? 忘记密码?