NEAR官方文档翻译(四)基础(Basics)- 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:

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

Example Response:

{
    "id": "dontcare",
    "jsonrpc": "2.0",
    "result": {
        "avg_hidden_validator_seats_per_shard": [
            0
        ],
        "block_producer_kickout_threshold": 90,
        "chain_id": "mainnet",
        "chunk_producer_kickout_threshold": 90,
        "dynamic_resharding": false,
        "epoch_length": 43200, //  <---------- EPOCH duration in seconds
        "fishermen_threshold": "340282366920938463463374607431768211455",
        "gas_limit": 1000000000000000,
        "gas_price_adjustment_rate": [
            1,
            100
        ],
        "genesis_height": 9820210,
        "genesis_time": "2020-07-21T16:55:51.591948Z",
        "max_gas_price": "10000000000000000000000",
        "max_inflation_rate": [
            0,
            1
        ],
        // ---- snip ----
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值