erigon 客户端默认是archive node,怎么开启full node模式呢

erigon 客户端默认是archive node,怎么开启full node模式呢

请先 登录 后评论

最佳答案 2022-08-10 09:56

启动节点时添加 --prune=hrtc flag。

  • h - prune history (ChangeSets, HistoryIndices - used by historical state access)
  • r - prune receipts (Receipts, Logs, LogTopicIndex, LogAddressIndex - used by eth_getLogs and similar RPC methods)
  • t - prune transaction by it's hash index
  • c - prune call traces (used by trace_* methods)

By default, --prune deletes data older than 90K blocks from the tip of the chain (aka, for if tip block is no. 12'000'000, only the data between 11'910'000-12'000'000 will be kept).

Thus could be overridden by --prune.<mode>.older flags. E.g. --prune.h.older=1000000 keeps the last 1'000'000 historical entries.

--prune= (empty list) means no pruning (full archive mode).

请先 登录 后评论

其它 0 个回答

  • 1 关注
  • 0 收藏,3362 浏览
  • peppepepe 提出于 2022-08-09 23:52