【入门系列】搭建EOS主网节点

wing 2019-04-18

一、准备机器

配置:4核8G
系统:Centos 7
系统盘:50G
高效云盘:200G

注:本教程为测试用,故配置较为普通,若需要对外提供服务可适当提高配置

二、准备配置文件

2.1 创世文件 genesis.json

{
  "initial_timestamp": "2018-06-08T08:08:08.888",
  "initial_key": "EOS7EarnUhcyYqmdnPon8rm7mBCTnBoot6o7fE2WzjvEX2TdggbL3",
  "initial_configuration": {
      "max_block_net_usage": 1048576,
      "target_block_net_usage_pct": 1000,
      "max_transaction_net_usage": 524288,
      "base_per_transaction_net_usage": 12,
      "net_usage_leeway": 500,
      "context_free_discount_net_usage_num": 20,
      "context_free_discount_net_usage_den": 100,
      "max_block_cpu_usage": 200000,
      "target_block_cpu_usage_pct": 1000,
      "max_transaction_cpu_usage": 150000,
      "min_transaction_cpu_usage": 100,
      "max_transaction_lifetime": 3600,
      "deferred_trx_expiration_window": 600,
      "max_transaction_delay": 3888000,
      "max_inline_action_size": 4096,
      "max_inline_action_depth": 4,
      "max_authority_depth": 6
    }
}

2.1 config.ini

config.ini

三、安装EOS

3.1 centos

$ wget https://github.com/eosio/eos/releases/download/v1.5.3/eosio-1.5.3-1.el7.x86_64.rpm

$ sudo yum install ./eosio-1.5.3-1.el7.x86_64.rpm

四、启动nodeos

nodeos --genesis-json /data/eos/genesis.json --data-dir /data/eos/data --config-dir /data/eos/data

五、checkStatus

[root@t-eos ~]# cleos get info | jq .
{
  "server_version": "ced8d7db",
  "chain_id": "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906",
  "head_block_num": 9083495,
  "last_irreversible_block_num": 9083178,
  "last_irreversible_block_id": "008a992a7c930230b3810faf782c12969ef2d1185b9dc0835e4ab998ab90bd43",
  "head_block_id": "008a9a671cb1a6586d1b89c07cef337e4e288f2a7c638ebe14ffa51ce4195c4d",
  "head_block_time": "2018-08-02T15:22:42.000",
  "head_block_producer": "zbeosbp11111",
  "virtual_block_cpu_limit": 200000000,
  "virtual_block_net_limit": 1048576000,
  "block_cpu_limit": 200000,
  "block_net_limit": 1048576,
  "server_version_string": "v1.5.3"
}
评论列表
  1. zhujianxin
    2019-04-18

    是啊

    回复
    • zhujianxin
      2019-04-18

      不错~

      回复

发表评论

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