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

peppepepe peppepepe 提出于 2022-08-09 23:52 5412 浏览

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).

pan
pan

采纳率 40% · 回答于 2022-08-10 09:47

其它 0 个回答

写回答

你需要登录后才可以回答问题,登录