美文网首页
用快照启动EOS的状态历史节点

用快照启动EOS的状态历史节点

作者: 星汉 | 来源:发表于2021-10-08 15:37 被阅读0次

    EOS状态历史节点可以使用快照方式来启动。

    nodeos  \

    --plugin eosio::producer_api_plugin \

    --plugin eosio::chain_api_plugin \

      --plugin eosio::http_plugin \

    --http-server-address 0.0.0.0:8889 \

    --p2p-peer-address 127.0.0.1:9876 \

    --p2p-listen-endpoint 0.0.0.0:9877 \

    --plugin eosio::state_history_plugin --disable-replay-opts  --trace-history --chain-state-history \

    --resource-monitor-space-threshold 99 \

    --data-dir /eos/data \

    --snapshot /eos/data/snapshots/snapshot-000047912875e0989a6cf7407ee5a29460af5c65cd2cd743aa8691dcab613d23.bin \

    --delete-all-block

    state-history目录中的文件会记录snapshot的时间之后的状态历史

    chain_state_history.log

    trace_histor y.log

    --delete-all-blocks用来清空blocks和state目录下的文件,但不会清理state-history的文件。

    用快照启动状态历史节点,会自动追加更新state-history下的日志文件,不必手工删除。如果删除则只会包含snapshot之后的数据。

    相关文章

      网友评论

          本文标题:用快照启动EOS的状态历史节点

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