EOS开发 第五篇 运行连接到公共测试网络的本地节点

in #eos6 years ago

 作者: Harvey Meng   微信: menhigkong   日期: 2018年3月20日 

要运行连接到由block.one操作的公共测试网络的本地节点,已提供脚本。

cd ~/eos/build/scripts
./start_npnode.sh

该命令将使用为名为testnet_np的实例提供的数据文件夹。

您应该看到以下响应:

Launched eosd.
See testnet_np/stderr.txt for eosd output.
Synching requires at least 8 minutes, depending on network conditions.

确认eosd操作和同步: 

tail -F testnet_np/stderr.txt

要退出,请使用Ctrl-C。 在同步期间,您将看到类似于以下内容的日志消息: 

3439731ms            chain_plugin.cpp:272          accept_block         ] Syncing Blockchain --- Got block: #200000 time: 2017-12-09T07:56:32 producer: initu
3454532ms            chain_plugin.cpp:272          accept_block         ] Syncing Blockchain --- Got block: #210000 time: 2017-12-09T13:29:52 producer: initc

当您看到类似于以下内容的日志消息时,同步已完成: 

42467ms            net_plugin.cpp:1245           start_sync           ] Catching up with chain, our last req is 351734, theirs is 351962 peer ip-10-160-11-116:9876
42792ms            chain_controller.cpp:208      _push_block          ] initt #351947 @2017-12-12T22:59:44  | 0 trx, 0 pending, exectime_ms=0
42793ms            chain_controller.cpp:208      _push_block          ] inito #351948 @2017-12-12T22:59:46  | 0 trx, 0 pending, exectime_ms=0
42793ms            chain_controller.cpp:208      _push_block          ] initd #351949 @2017-12-12T22:59:48  | 0 trx, 0 pending, exectime_ms=0

此eosd实例在127.0.0.1:8888上侦听http请求,在端口9877的所有接口上侦听p2p请求,并包含钱包插件。

Sort:  

Congratulations @menhigkong! You received a personal award!

1 Year on Steemit

Click here to view your Board

Do not miss the last post from @steemitboard:

SteemWhales has officially moved to SteemitBoard Ranking
SteemitBoard - Witness Update

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @menhigkong! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!

Coin Marketplace

STEEM 0.27
TRX 0.13
JST 0.032
BTC 62441.36
ETH 2940.53
USDT 1.00
SBD 3.59