配置要求:
2核8G以上
硬盘500G
安装eosio (大于1.4.0版本)
文档地址: https://developers.eos.io/eosio-home/docs
# wget https://github.com/EOSIO/eos/releases/download/v1.8.6/eosio_1.8.6-1-ubuntu-18.04_amd64.deb
# sudo apt install ./eosio_1.8.6-1-ubuntu-18.04_amd64.deb
使用镜像搭建EOS节点
参考文章 https://juejin.im/post/5c46d1f1e51d456e4138fb01#heading-12
启动EOS节点
# cd /data
# mkdir node-data
# cd node-data
下载最新的快照 eosnode.tools/snapshots
# wget https://s3.eu-central-1.wasabisys.com/eosnodetools/snapshots/snap_2020-01-06-09-00.tar.gz
# tar -zxvf snap_2020-01-06-09-00.tar.gz
创建配置文件
# cd /data
# vim config.ini
agent-name = EOSNODEOS
chain-state-db-size-mb = 10240
reversible-blocks-db-size-mb = 1024
http-server-address = 0.0.0.0:8870
http-validate-host = false
verbose-http-errors = true
abi-serializer-max-time-ms = 2000
access-control-allow-origin = *
allowed-connection = any
max-clients = 2
sync-fetch-span = 3000
connection-cleanup-period = 30
enable-stale-production = false
plugin = eosio::chain_api_plugin
plugin = eosio::chain_plugin
p2p-peer-address = ip:prot
相关 p2p 节点地址信息可以去https://github.com/CryptoLions/EOS-MainNet/blob/master/config.ini查看
# nohup nodeos --config-dir ./ --data-dir ./node-data --snapshot ./node-data/snapshots/snapshot-023e5e8813f687c6c5ffcf6eae853eb24f78d90b475dac4fb94face8c8308e4f.bin &
查看区块高度:
cleos -u 'http://127.0.0.1:8870' get info
网友评论