美文网首页
EOS学习笔记-1.启动单节点EOS链

EOS学习笔记-1.启动单节点EOS链

作者: zhworker | 来源:发表于2020-08-10 23:31 被阅读0次

1.启动

parent_dir=build/bin
${parent_dir}/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 \
--data-dir   ${parent_dir}/data \
--config-dir  ${parent_dir}/config \
--access-control-allow-origin='*' \
--contracts-console \
--http-validate-host=false \
--verbose-http-errors \
--filter-on='*' >> ${parent_dir}/nodeos.log 2>&1 &

2.安全的停止


pkill nodeos 

3.wallet_api_plugin 不再支持

wallet_api_plugin is no longer supported as part of nodeos. Use keosd instead.

4.kill 命令再次执行时会导致database dirty flag set

当重新运行nodeos时,必须使用--replay-blockchain命令忽略它。

pkill -9 nodeos or kill -9 {pid}
database dirty flag set (likely due to unclean shutdown): replay required

This appears to be two different issues.
 
Startup after a crash or ungraceful shutdown nearly always fails due to corruption of the boost shared memory cache of the in-memory database. --resync is required to clean up the mess.
 
For normal shutdown, never kill with -9. Always use either the default (no argument) signal (which is SIGTERM) or SIGINT. Numerically, those are 15 and 2, respectively.
 
pkill nodeos | Safe
pkill -15 nodeos | Safe
pkill -2 nodeos | Safe
pkill -TERM nodeos | Safe
pkill -SIGTERM nodeos | Safe
pkill -INT nodeos | Safe
pkill -SIGINT nodeos | Safe
pkill -9 nodeos | Not Safe
pkill -KILL nodeos | Not Safe
pkill -SIGKILL nodeos | Not Safe
 
The core dump is a different problem. That looks like a corrupted network packet, specifically a signed_block_summary. Summary messages are being eliminated from the protocol, so this particular error will no longer be possible soon

相关文章

网友评论

      本文标题:EOS学习笔记-1.启动单节点EOS链

      本文链接:https://www.haomeiwen.com/subject/lfwsdktx.html