搭建自己的链,想要保留更多的trie结点信息。

使用如下命令时候,geth提示命名不存在。
--trie-cache-gens
在使用geth -help查询之后发现只有下面几个命令:
 --cache value                       Megabytes of memory allocated to internal caching (default = 4096 mainnet full node, 128 light mode) (default: 1024)
 --cache.database value              Percentage of cache memory allowance to use for database io (default: 50)
 --cache.trie value                  Percentage of cache memory allowance to use for trie caching (default = 15% full mode, 30% archive mode) (default: 15)
  --cache.trie.journal value          Disk journal directory for trie cache to survive node restarts (default: "triecache")
  --cache.trie.rejournal value        Time interval to regenerate the trie cache journal (default: 1h0m0s)
  --cache.gc value                    Percentage of cache memory allowance to use for trie pruning (default = 25% full mode, 0% archive mode) (default: 25)
  --cache.snapshot value              Percentage of cache memory allowance to use for snapshot caching (default = 10% full mode, 20% archive mode) (default: 10)
  --cache.noprefetch                  Disable heuristic state prefetch during block import (less CPU and disk IO, more time waiting for data)
  --cache.preimages                   Enable recording the SHA3/keccak preimages of trie keys

我本地想根据指定的区块高度来查询用户余额,并且来进行空投。目前最多只有110个块的数据,我想要保存更多的块数据,需要使用哪个参数来进行设置呀。

请先 登录 后评论

1 个回答

nono
请先 登录 后评论