NEAR官方文档翻译(四)基础(Basics)- Epoch

亦凉 2022-10-22 09:24 222阅读 0赞

文章目录

  • Epoch

Epoch

An epoch is a unit of time when validators of the network remain constant.
epoch 是网络验证器保持不变的时间单位。

  • testnet和mainnet的epoch 持续时间约为12小时或43200秒。
  • 您可以通过查询genesis_config RPC端点并搜索epoch_length来查看此设置。(https://docs.near.org/docs/develop/front-end/rpc\#genesis-config)
  • Nodes garbage collect blocks after 5 epochs unless they are archival nodes.

HTTPie Query:

  1. http post https://rpc.mainnet.near.org jsonrpc=2.0 id=dontcare method=EXPERIMENTAL_genesis_config

Example Response:

  1. {
  2. "id": "dontcare",
  3. "jsonrpc": "2.0",
  4. "result": {
  5. "avg_hidden_validator_seats_per_shard": [
  6. 0
  7. ],
  8. "block_producer_kickout_threshold": 90,
  9. "chain_id": "mainnet",
  10. "chunk_producer_kickout_threshold": 90,
  11. "dynamic_resharding": false,
  12. "epoch_length": 43200, // <---------- EPOCH duration in seconds
  13. "fishermen_threshold": "340282366920938463463374607431768211455",
  14. "gas_limit": 1000000000000000,
  15. "gas_price_adjustment_rate": [
  16. 1,
  17. 100
  18. ],
  19. "genesis_height": 9820210,
  20. "genesis_time": "2020-07-21T16:55:51.591948Z",
  21. "max_gas_price": "10000000000000000000000",
  22. "max_inflation_rate": [
  23. 0,
  24. 1
  25. ],
  26. // ---- snip ----
  27. }

发表评论

表情:
评论列表 (有 0 条评论,222人围观)

还没有评论,来说两句吧...

相关阅读