eos bp节点 超级节点搭建

 
 
  • 搭建eos BP节点
 
环境搭建与配置
安装最新版本
$ wget https://github.com/eosio/eos/releases/download/v1.8.1/eosio-1.8.1-1.el7.x86_64.rpm $ sudo yum install ./eosio-1.8.1-1.el7.x86_64.rpm
 
设置一个合约目录(目前没有用到)
mkdir contracts cd contracts
 
启动keosd
keosd &
 
启动nodeos
执行以下命令 nodeos -e -p eosio \ --plugin eosio::producer_plugin \ --plugin eosio::chain_api_plugin \ --plugin eosio::http_plugin \ --plugin eosio::history_plugin \ --plugin eosio::history_api_plugin \ --access-control-allow-origin='*' \ --contracts-console \ --http-validate-host=false \ --verbose-http-errors >> nodeos.log 2>&1 &
 
tail -f nodeos.log查看启动日志:
1929001ms thread-0   producer_plugin.cpp:585       block_production_loo ] Produced block 0000366974ce4e2a... #13929 @ 2018-05-23T16:32:09.000 signed by eosio [trxs: 0, lib: 13928, confirmed: 0]
1929502ms thread-0   producer_plugin.cpp:585       block_production_loo ] Produced block 0000366aea085023... #13930 @ 2018-05-23T16:32:09.500 signed by eosio [trxs: 0, lib: 13929, confirmed: 0]
1930002ms thread-0   producer_plugin.cpp:585       block_production_loo ] Produced block 0000366b7f074fdd... #13931 @ 2018-05-23T16:32:10.000 signed by eosio [trxs: 0, lib: 13930, confirmed: 0]
1930501ms thread-0   producer_plugin.cpp:585       block_production_loo ] Produced block 0000366cd8222adb... #13932 @ 2018-05-23T16:32:10.500 signed by eosio [trxs: 0, lib: 13931, confirmed: 0]
1931002ms thread-0   producer_plugin.cpp:585       block_production_loo ] Produced block 0000366d5c1ec38d... #13933 @ 2018-05-23T16:32:11.000 signed by eosio [trxs: 0, lib: 13932, confirmed: 0]
1931501ms thread-0   producer_plugin.cpp:585       block_production_loo ] Produced block 0000366e45c1f235... #13934 @ 2018-05-23T16:32:11.500 signed by eosio [trxs: 0, lib: 13933, confirmed: 0]
1932001ms thread-0   producer_plugin.cpp:585       block_production_loo ] Produced block 0000366f98adb324... #13935 @ 2018-05-23T16:32:12.000 signed by eosio [trxs: 0, lib: 13934, confirmed: 0]
1932501ms thread-0   producer_plugin.cpp:585       block_production_loo ] Produced block 00003670a0f01daa... #13936 @ 2018-05-23T16:32:12.500 signed by eosio [trxs: 0, lib: 13935, confirmed: 0]
1933001ms thread-0   producer_plugin.cpp:585       block_production_loo ] Produced block 00003671e8b36e1e... #13937 @ 2018-05-23T16:32:13.000 signed by eosio [trxs: 0, lib: 13936, confirmed: 0]
1933501ms thread-0   producer_plugin.cpp:585       block_production_loo ] Produced block 0000367257fe1623... #13938 @ 2018-05-23T16:32:13.500 signed by eosio [trxs: 0, lib: 13937, confirmed: 0]

 

 
校验钱包
cleos wallet list
控制台返回
Wallets: []
 
查看chain信息
 
 
  • 创建钱包
生成default钱包的密钥到指定文件
cleos wallet create --file wallet-file
 
 
导入私钥
cleos wallet import(输入私钥 )
private key: warn 2019-08-12T12:00:24.677 thread-0 wallet.cpp:223 save_wallet_file ] saving wallet to file /home/ec2-user/eosio-wallet/./default.wallet
imported private key for: xxxxxxxxx
 
导入成功后可使用cleos wallet keys命令查看
 
 
 
创世节点相关配置和脚本
cd ~
mkdir biosboot
cd biosboot
mkdir genesis
cd genesis
cd ~/biosboot
touch genesis.json
vi genesis.json
将下面的文本复制到genesis.json(注意,不需要做任何更改)
{ "initial_timestamp": "2018-06-08T08:08:08.888", "initial_key": "xxxxxx", "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 } }
 
 
cd ~/biosboot/genesis touch genesis_start.sh
genesis_start.sh内容如下:
#!/bin/bash DATADIR="./blockchain" if [ ! -d $DATADIR ]; then mkdir -p $DATADIR; fi nodeos \ --genesis-json $DATADIR"/../../genesis.json" \ --data-dir $DATADIR"/data" \ --blocks-dir $DATADIR"/blocks" \ --config-dir $DATADIR"/config" \ --access-control-allow-origin=* \ --contracts-console \ --http-validate-host=false \ --verbose-http-errors \ --enable-stale-production \ >> $DATADIR"/nodeos.log" 2>&1 & \ echo $! > $DATADIR"/eosd.pid"
 
chmod 755 genesis_start.sh ./genesis_start.sh
执行后可通过日志查看启动情况 tail -fn300 ./blockchain/nodeos.log
 
停止nodeos
vi stop.sh
 
#!/bin/bash DATADIR="./blockchain/" if [ -f $DATADIR"/eosd.pid" ]; then pid=`cat $DATADIR"/eosd.pid"` echo $pid kill $pid rm -r $DATADIR"/eosd.pid" echo -ne "Stoping Node" while true; do [ ! -d "/proc/$pid/fd" ] && break echo -ne "." sleep 1 done echo -ne "\rNode Stopped. \n" fi
chmod 755 stop.sh
./stop.sh
 
 
修改配置文件(重要)
配置文件中设置了公私钥、producer-name、主网节点等重要信息
/home/ec2-user/biosboot/genesis/blockchain/config/config.ini
signature-provider = EOSxxxxx=KEY:xxxxxx
producer-name = xxxxx

# checkpoint = 
# wasm-runtime = 
chain-state-db-size-mb = 128000
reversible-blocks-db-size-mb = 2048
contracts-console = false
# actor-whitelist = 
# actor-blacklist = 
# contract-whitelist = 
# contract-blacklist = 

# Track actions which match receiver:action:actor. Actor may be blank to include all. Receiver and Action may not be blank. (eosio::history_plugin)
# filter-on = 
# https-client-root-cert = 
# false: ignore cert errors (eosio::http_client_plugin)
http-validate-host = false

verbose-http-errors = false
#在http返回中加入错误日志

https-client-validate-peers = 1
http-server-address = 0.0.0.0:8888
abi-serializer-max-time-ms = 2000
# https-server-address = 
# https-certificate-chain-file = 
# https-private-key-file = 

access-control-allow-origin = *
access-control-allow-headers = Origin, X-Requested-With, Content-Type, Accept
# access-control-max-age = 
access-control-allow-credentials = false
#p2p-server-address = p2p.eoshenzhen.io:9876
#p2p-listen-endpoint = p2p.eoshenzhen.io:9876

p2p-server-address = 0.0.0.0:9876
#p2p-server-address = 120.197.130.119:9876
p2p-listen-endpoint = 0.0.0.0:9876
#read-mode=read-only
p2p-max-nodes-per-host = 70
agent-name = "eszbp"
allowed-connection = any
# peer-key = 

# peer-private-key = 
max-clients = 25
connection-cleanup-period = 30
network-version-match = 0
sync-fetch-span = 100
#max-implicit-request = 1500
enable-stale-production = false
# Start this node in a state where production is paused (eosio::producer_plugin)
pause-on-startup = false
max-transaction-time = 30
max-irreversible-block-age = -1
keosd-provider-timeout = 5
txn-reference-block-lag = 0
#wallet-dir = "."


#unlock-timeout = 900
# Plugin(s) to enable, may be specified multiple times
plugin = eosio::chain_plugin
plugin = eosio::chain_api_plugin
plugin = eosio::producer_plugin
plugin = eosio::producer_api_plugin
plugin = eosio::http_plugin
#plugin = eosio::producer_heartbeat_plugin
##heartbeat-period = 1500
#heartbeat-signature-provider = EOS7QW6YN5zXmKRBLVJ7zFCAPU6zggdHuqHW4wB4aVqu8ykRUwXL1=KEY:5JJtzsScTpHE8fNV84tJpv8w5DkqHm12k72dL5PZdoEutneNHN9
#heartbeat-contract = eosheartbeat
#heartbeat-permission = heartbeat
#heartbeat-oncall = telegram:sheldonpp
#
## localnet
#p2p-peer-address = 192.168.5.12:9876
#p2p-peer-address = 192.168.5.13:9877


#1 eoshuobipool
p2p-peer-address = peer2.eoshuobipool.com:18181
p2p-peer-address = 54.65.62.40:18181
#2 starteosiobp
p2p-peer-address = node1.starteos.io:9876
#p2p-peer-address = node2.starteos.io:9876
#3 eoslaomaocom
#p2p-peer-address = fullnode.eoslaomao.com:443
p2p-peer-address = mainnet.eoslaomao.com:443
#4 zbeosbp11111
p2p-peer-address = node1.zbeos.com:9876
p2p-peer-address = node2.zbeos.com:9876
#5 eosliquideos
p2p-peer-address = node2.liquideos.com:9876
#6 eosflytomars
p2p-peer-address = p2p.bitmars.one:8080
#7 eosiosg11111
p2p-peer-address = peer.eosio.sg:80
#8 bitfinexeos1
#p2p-peer-address = eos-bp.bitfinex.com:9876
#9 atticlabeosb
p2p-peer-address = 62.149.9.136:9876
#10 eosnewyorkio
p2p-peer-address = node1.eosnewyork.io:6987
#11 cochainworld
#p2p-peer-address = peer1.eoscochain.io:9877
#p2p-peer-address = peer2.eoscochain.io:9877
#12 jedaaaaaaaaa
p2p-peer-address = m.jeda.one:3322
#13 eoscannonchn
#p2p-peer-address = node1.eoscannon.io:59876
#14 eos42freedom
p2p-peer-address = seed1.eos42.io:9876
p2p-peer-address = seed2.eos42.io:9876
#15 eosbixinboot
p2p-peer-address = mars.fnp2p.eosbixin.com:443
#16 eoscanadacom
p2p-peer-address = peering.mainnet.eoscanada.com:9876
#17 eosbeijingbp
#p2p-peer-address = bp.eosbeijing.one:8080
p2p-peer-address = 18.182.194.107:8080
#18 eoshenzhenio
p2p-peer-address = p2p.eoshenzhen.io:9876
#19 eosauthority
p2p-peer-address = node869-mainnet.eosauthority.com:9393
#20 eosriobrazil
p2p-peer-address = br.eosrio.io:9876
#21 eosnationftw
p2p-peer-address = peer.eosn.io:9876
#22 eosswedenorg
p2p-peer-address = p2p.eossweden.se:9876
#23 eosdacserver
#p2p-peer-address = ro1.eosdac.io:49876
#24 teamgreymass
p2p-peer-address = seed.greymass.com:9876
#25 cypherglasss
p2p-peer-address = publicnode.cypherglass.com:9876
#26 eospaceioeos
#p2p-peer-address = p2p.mainnet.eospacex.com:88


# Stolen accounts blacklist
actor-blacklist = blacklistmee
actor-blacklist = ge2dmmrqgene
actor-blacklist = gu2timbsguge
actor-blacklist = ge4tsmzvgege
actor-blacklist = gezdonzygage
actor-blacklist = ha4tkobrgqge
# 18 - remove below entry from blacklist
#actor-blacklist = ha4tamjtguge
actor-blacklist = gq4dkmzzhege

# 2
actor-blacklist = gu2teobyg4ge
actor-blacklist = gq4demryhage
actor-blacklist = q4dfv32fxfkx
actor-blacklist = ktl2qk5h4bor
actor-blacklist = haydqnbtgene
actor-blacklist = g44dsojygyge
actor-blacklist = guzdonzugmge
actor-blacklist = ha4doojzgyge
actor-blacklist = gu4damztgyge
actor-blacklist = haytanjtgige
actor-blacklist = exchangegdax
actor-blacklist = cmod44jlp14k
actor-blacklist = 2fxfvlvkil4e
actor-blacklist = yxbdknr3hcxt
actor-blacklist = yqjltendhyjp
actor-blacklist = pm241porzybu
actor-blacklist = xkc2gnxfiswe
actor-blacklist = ic433gs42nky
actor-blacklist = fueaji11lhzg
actor-blacklist = w1ewnn4xufob
actor-blacklist = ugunxsrux2a3
actor-blacklist = gz3q24tq3r21
actor-blacklist = u5rlltjtjoeo
actor-blacklist = k5thoceysinj
actor-blacklist = ebhck31fnxbi
actor-blacklist = pvxbvdkces1x
actor-blacklist = oucjrjjvkrom

# 3
actor-blacklist = neverlandwal
actor-blacklist = tseol5n52kmo
actor-blacklist = potus1111111

# 4
actor-blacklist = craigspys211

# 5
actor-blacklist = eosfomoplay1

# 6
actor-blacklist = wangfuhuahua

# 7
# Order 10 remove blacklist for this
#actor-blacklist = ha4timrzguge
actor-blacklist = guytqmbuhege

# 8
actor-blacklist = huobldeposit

# Ram lockers
#actor-blacklist = eosramfoodie
#actor-blacklist = eosbetfucker

# 11
actor-blacklist = gm3dcnqgenes
actor-blacklist = gm34qnqrepqt
actor-blacklist = gt3ftnqrrpqp
actor-blacklist = gtwvtqptrpqp
actor-blacklist = gm31qndrspqr
actor-blacklist = lxl2atucpyos

# AO-012
actor-blacklist = g4ytenbxgqge
actor-blacklist = jinwen121212
actor-blacklist = ha4tomztgage
actor-blacklist = my1steosobag
actor-blacklist = iloveyouplay
actor-blacklist = eoschinaeos2
actor-blacklist = eosholderkev
actor-blacklist = dreams12true
actor-blacklist = imarichman55

# AO-013
actor-blacklist = gizdcnjyg4ge

# A0-014
actor-blacklist = gyzdmmjsgige

# A0-015
actor-blacklist = guzdanrugene
actor-blacklist = earthsop1sys

#A0-016 - missing?

# A0-017
actor-blacklist = refundwallet
actor-blacklist = jhonnywalker
actor-blacklist = alibabaioeos
actor-blacklist = whitegroupes
actor-blacklist = 24cryptoshop
actor-blacklist = minedtradeos

# A0-018
actor-blacklist = gizdkmjvhege

# Feb 22
actor-blacklist = newdexmobapp
actor-blacklist = ftsqfgjoscma 
actor-blacklist = hpbcc4k42nxy 
actor-blacklist = 3qyty1khhkhv 
actor-blacklist = xzr2fbvxwtgt
actor-blacklist = myqdqdj4qbge
actor-blacklist = shprzailrazt
actor-blacklist = qkwrmqowelyu 
actor-blacklist = lhjuy3gdkpq4
actor-blacklist = lmfsopxpr324
actor-blacklist = lcxunh51a1gt
actor-blacklist = geydddsfkk5e
actor-blacklist = pnsdiia1pcuy
actor-blacklist = kwmvzswquqpb
actor-blacklist = guagddoefdqu
View Code

 

 
设置完成后启动nodeos
vi start.sh
#!/bin/bash DATADIR="./blockchain" if [ ! -d $DATADIR ]; then mkdir -p $DATADIR; fi nodeos \ --data-dir $DATADIR"/data" \ --blocks-dir $DATADIR"/blocks" \ --config-dir $DATADIR"/config" \ --access-control-allow-origin=* \ --contracts-console \ --http-validate-host=false \ --verbose-http-errors \ --enable-stale-production \ >> $DATADIR"/nodeos.log" 2>&1 & \ echo $! > $DATADIR"/eosd.pid"
chmod 755 start.sh
./start.sh
 
查看节点信息
cleos get info
{ "server_version": "14185431", "chain_id": "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906", "head_block_num": 9631012, "last_irreversible_block_num": 9630681, "last_irreversible_block_id": "0092f3d9e4dd07d48d30da36b28127a6ee2e7c0ae9e0dce4dcf66b2e562448ae", "head_block_id": "0092f5246cf421886a4e08945fa445598323a37cd6e586e41d6c6645215f37da", "head_block_time": "2018-08-05T22:16:39.000", "head_block_producer": "eosauthority", "virtual_block_cpu_limit": 200000000, "virtual_block_net_limit": 1048576000, "block_cpu_limit": 200000, "block_net_limit": 1048576, "server_version_string": "v1.8.1", "fork_db_head_block_num": 9631012, "fork_db_head_block_id": "0092f5246cf421886a4e08945fa445598323a37cd6e586e41d6c6645215f37da" }
 
校验
chain_id是否为aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906,必须为这个值才说明同步到了主网
server_version_string 版本号为v1.8.1
多执行几次命令查看head_block_num是否一直在增长,增长说明是在不断同步主网区块(现在高度为7000多万)
 
 
 
  • 注册EOS BP(EOS Block Producer)
cleos -u https://mainnet.eoscannon.io system regproducer xxx EOSxxx https://www.xxx.com 702
注意702表示地区编码,必须为数字
 
注册完成可在https://eospark.com/上搜索xxxx,相关信息如下:
 
设置相关信息:
将bp.json放在官网
https://www.xxxx.com/bp.json
{ "producer_account_name": "xxxxx", "producer_public_key": "EOSxxxxx", "org": { "candidate_name": "xxxx", "website": "https://www.xxxx.com", "code_of_conduct":"", "email":"contact@mail.xxxx.com", "branding":{ "logo_256":"https://www.xxxx.com/beekuaibao-256*256.png", "logo_1024":"https://www.xxxx.com/beekuaibao-1024*1024.png", "logo_svg":"https://www.xxxx.com/beekuaibao-300*300.svg" }, "location": { "name": "Singapore", "country": "SG", "latitude": 1.369004, "longitude": 103.851561 }, "social": { "twitter": "https://twitter.com/xxxx", "facebook": "https://www.facebook.com/xxx" } }, "nodes": [ { "location": { "name": "Singapore", "country": "SG", "latitude": 1.369004, "longitude": 103.851561 }, "node_type": "full", "api_endpoint": "", "ssl_endpoint": "" } ] }
 
参考
 
投票
cleos -u https://mainnet.eoscannon.io system voteproducer prods xxxx xxxxx
 
 
  • EOS节点奖励
奖励规则
eos有21个出块节点和n个候选节点,每年增发eos比例为5%,其中20%用于节点奖励,80%用于基金池。
20%的节点奖励中有25%用于21个出块节点奖励,75%由所有节点按照投票权重占比来分配的。
如果某个备用节点的得票奖励不足100个EOS,则无法得到奖励。
 
认领奖励
查询余额
cleos -u https://mainnet.eoscannon.io get account xxxx
 
申领奖励
 
先新建一对公私钥,然后自定义claim权限
cleos -u https://mainnet.eoscannon.io set account permission xxxxx claim EOSxxxxxx active -p xxxxx@active
 
cleos -u https://mainnet.eoscannon.io set action permission xxxx eosio claimrewards claim -p xxxxx@active
 
使用claim权限申领
cleos -u https://mainnet.eoscannon.io system claimrewards xxxx -p xxxxx@claim
 
 
 
定时任务申领奖励
1、编写脚本(使用go编写,相对于执行执行命令,多了重试机制并提供了多个endpoint)
 
 
2、build脚本,在mac上build的二进制文件在aws的服务器上无法执行,于是在aws上配置了go、git环境。
环境配置好后执行go build main.go 生成二进制可执行文件main;
vi reward_clain.sh执行main文件并输出日志到log中
#!/bin/sh cd /home/ec2-user/biosboot/genesis/claim_reward ./main >> claim_reward.log &
 
3、将脚本放入crontab中
crontab -e
00 02 * * * nohup sh /home/ec2-user/biosboot/genesis/claim_reward/claim_reward.sh
设置UTC时间每日凌晨2点(北京时间10点)执行
 
 
 
  • 出块节点
如果投票进入前21名成为超级节点,则要负责出块,出块的前提是追平最新区块。
如果从第一个区块开始同步会非常慢,现在最新区块为7000多万,我们的机器同步了半个月才4000多万。
 
那么快捷方式呢?有!可以通过snapshot快速同步。关键步骤如下:
 
1、前往snapshots提供网站下载
网址1:
这里有个坑:2019年8月30日前后下载的snapshot版本是V1.7.1,而我本机安装的是最新版V1.8.1,
node启动起来后chain_id一直不对,head_block_num始终为1。
 
网址2
这个上面是最新的1.8版本
 
下载后解压放入snapshots目录
tar -zxvf snapshot-76607475.bin.tar.gz
 
2、停掉node节点
ps -ef | grep nodeos
杀掉对进程
 
3、删除data目录下的blocks、state
 
4、以snapshot的方式启动nodeos,脚本如下,执行即可
#!/bin/bash EOSBP_DIR="/home/ec2-user/eosnode" if [ ! -d $EOSBP_DIR ]; then mkdir -p $EOSBP_DIR; fi nodeos \ --snapshot $EOSBP_DIR"/data/snapshots/snapshot-76607475.bin" \ --data-dir $EOSBP_DIR"/data" \ --config-dir $EOSBP_DIR"/config" \ >> $EOSBP_DIR"/nodeos.log" 2>&1 & \ echo $! > $EOSBP_DIR"/eosd.pid"
 
5、验证
可以看到nodeos.log中的日志如下,可以看到nodeos在初始化snapshot并从第76607475个区块开始同步
info  2019-08-30T05:48:19.449 nodeos    main.cpp:93                   main                 ] nodeos version v1.8.1
info  2019-08-30T05:48:19.449 nodeos    main.cpp:94                   main                 ] nodeos using configuration file /home/ec2-user/eosnode/config/config.ini
info  2019-08-30T05:48:19.449 nodeos    main.cpp:95                   main                 ] nodeos data directory is /home/ec2-user/eosnode/data
info  2019-08-30T05:48:19.449 nodeos    controller.cpp:2255           startup              ] Starting initialization from snapshot, this may take a significant amount of time
info  2019-08-30T05:49:58.578 nodeos    controller.cpp:685            init                 ] database initialized with hash: f6068f08c2a9cc0a6df3da868c9855110b7c4c34c40704323edf21c507a486e4
info  2019-08-30T05:49:58.579 nodeos    controller.cpp:2265           startup              ] Finished initialization from snapshot
info  2019-08-30T05:49:58.579 nodeos    chain_plugin.cpp:982          plugin_startup       ] starting chain in read/write mode
info  2019-08-30T05:49:58.579 nodeos    chain_plugin.cpp:986          plugin_startup       ] Blockchain started; head block is #76607475, genesis timestamp is 2018-06-08T08:08:08.888
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:538           plugin_startup       ] start listening for http requests
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/node/get_supported_apis
info  2019-08-30T05:49:58.579 nodeos    chain_api_plugin.cpp:77       plugin_startup       ] starting chain_api_plugin
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/abi_bin_to_json
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/abi_json_to_bin
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_abi
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_account
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_activated_protocol_features
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_block
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_block_header_state
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_code
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_code_hash
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_currency_balance
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_currency_stats
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_info
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_producer_schedule
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_producers
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_raw_abi
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_raw_code_and_abi
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_required_keys
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_scheduled_transactions
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_table_by_scope
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_table_rows
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/get_transaction_id
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/push_block
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/push_transaction
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/push_transactions
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/chain/send_transaction
info  2019-08-30T05:49:58.579 nodeos    producer_plugin.cpp:820       plugin_startup       ] producer plugin:  plugin_startup() begin
info  2019-08-30T05:49:58.579 nodeos    producer_plugin.cpp:842       plugin_startup       ] Launching block production for 1 producers at 2019-08-30T05:49:58.579.
info  2019-08-30T05:49:58.579 nodeos    producer_plugin.cpp:854       plugin_startup       ] producer plugin:  plugin_startup() end
info  2019-08-30T05:49:58.579 nodeos    producer_api_plugin.cp:93     plugin_startup       ] starting producer_api_plugin
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/add_greylist_accounts
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/create_snapshot
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/get_account_ram_corrections
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/get_greylist
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/get_integrity_hash
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/get_runtime_options
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/get_scheduled_protocol_feature_activations
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/get_supported_protocol_features
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/get_whitelist_blacklist
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/pause
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/paused
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/remove_greylist_accounts
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/resume
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/schedule_protocol_feature_activations
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/set_whitelist_blacklist
info  2019-08-30T05:49:58.579 nodeos    http_plugin.cpp:625           add_handler          ] add api url: /v1/producer/update_runtime_options
info  2019-08-30T05:49:58.579 nodeos    net_plugin.cpp:1851           connect              ] host: peer2.eoshuobipool.com port: 18181 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: 54.65.62.40 port: 18181 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: node1.starteos.io port: 9876 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: mainnet.eoslaomao.com port: 443 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: node1.zbeos.com port: 9876 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: node2.zbeos.com port: 9876 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: node2.liquideos.com port: 9876 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: p2p.bitmars.one port: 8080 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: peer.eosio.sg port: 80 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: 62.149.9.136 port: 9876 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: node1.eosnewyork.io port: 6987 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: m.jeda.one port: 3322 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: seed1.eos42.io port: 9876 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: seed2.eos42.io port: 9876 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: mars.fnp2p.eosbixin.com port: 443 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: peering.mainnet.eoscanada.com port: 9876 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: 18.182.194.107 port: 8080 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: p2p.eoshenzhen.io port: 9876 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: node869-mainnet.eosauthority.com port: 9393 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: br.eosrio.io port: 9876 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: peer.eosn.io port: 9876 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: p2p.eossweden.se port: 9876 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: seed.greymass.com port: 9876 
info  2019-08-30T05:49:58.580 nodeos    net_plugin.cpp:1851           connect              ] host: publicnode.cypherglass.com port: 9876 
info  2019-08-30T05:49:58.800 nodeos    transaction_context.cp:103    deadline_timer       ] Using 11us deadline timer for checktime: min:3us max:13us mean:6us stddev:2us
info  2019-08-30T05:50:15.264 nodeos    producer_plugin.cpp:421       on_incoming_block    ] Received block c65aec441fcb5448... #76608000 @ 2019-08-29T18:04:26.500 signed by zbeosbp11111 [trxs: 44, lib: 76607674, conf: 0, latency: 42348764 ms]
info  2019-08-30T05:50:28.579 nodeos    net_plugin.cpp:1851           connect              ] host: node2.liquideos.com port: 9876 
info  2019-08-30T05:50:28.580 nodeos    net_plugin.cpp:1851           connect              ] host: peer.eosio.sg port: 80 
info  2019-08-30T05:50:28.580 nodeos    net_plugin.cpp:1851           connect              ] host: node1.eosnewyork.io port: 6987 
info  2019-08-30T05:50:28.580 nodeos    net_plugin.cpp:1851           connect              ] host: seed2.eos42.io port: 9876 
info  2019-08-30T05:50:28.580 nodeos    net_plugin.cpp:1851           connect              ] host: node869-mainnet.eosauthority.com port: 9393 
info  2019-08-30T05:50:28.580 nodeos    net_plugin.cpp:1851           connect              ] host: br.eosrio.io port: 9876 
info  2019-08-30T05:50:28.580 nodeos    net_plugin.cpp:1851           connect              ] host: peer.eosn.io port: 9876 
info  2019-08-30T05:50:28.580 nodeos    net_plugin.cpp:1851           connect              ] host: publicnode.cypherglass.com port: 9876 
View Code

 

 
执行cleos get info
确认chain_id为aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906,且head_block_num在不断增加并渐渐追平最新区块。
 
可对比此网站查看是否追平最新区块
 
{ "server_version": "14185431", "chain_id": "aca376f206b8fc25a6ed44dbdc66547c36c6c33e3a119ffbeaef943642f0e906", "head_block_num": 76697940, "last_irreversible_block_num": 76697605, "last_irreversible_block_id": "04925005805fd1c7e7df5ceb72a880dcaa4ea765295f608eae30e75bae25a2ee", "head_block_id": "049251543734211cce2619bc5a23a5e102bd964645b1244582572f601c5e5a1b", "head_block_time": "2019-08-30T06:35:59.000", "head_block_producer": "okcapitalbp1", "virtual_block_cpu_limit": 200000000, "virtual_block_net_limit": 1048576000, "block_cpu_limit": 199553, "block_net_limit": 1048136, "server_version_string": "v1.8.1", "fork_db_head_block_num": 76697940, "fork_db_head_block_id": "049251543734211cce2619bc5a23a5e102bd964645b1244582572f601c5e5a1b" }
 
 
Done!
 
 

 
 
  • 相关文档
 
 
白皮书
 
github
 
eos数据服务查询
 
eos现有区块快照
 
搭建一个私有的EOS集群
 
EOS多节点环境配置(搭建自己的EOS主网)
 
eos节点列表
 
通过cleos 进行注册BP
 
快速搭建 EOS 主网见证人节点(BP)
 
 
 

posted @ 2019-08-30 15:34  Vincent.Pei  阅读(1523)  评论(0编辑  收藏  举报