Skip to content

Commit

Permalink
Merge pull request #225 from ipfs-force-community/doc/enable-mine-record
Browse files Browse the repository at this point in the history
doc: enable record
  • Loading branch information
simlecode authored Sep 7, 2023
2 parents 6459534 + 69884ce commit 2f507a1
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion docs/zh/mine-record.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,27 @@

### 使用

默认情况下, `sophon-miner` 会记录七天的出块记录。可以使用 cli 查询,和请求接口查询等方式获取出块记录。

该功能启用后,`sophon-miner` 会记录七天的出块记录。可以使用 cli 查询,和请求接口查询等方式获取出块记录。

#### 启用

mine recorder 默认是关闭的,可以通过配置文件启用。

```toml
[Recorder]
# 是否启用
# 默认 false
Enable = true

# 记录过期时间
# 默认为 7天, 也就是 & * 2880
ExpireEpoch = 0

# 每次查询的最大记录数
# 默认为 288
MaxRecordPerQuery = 0
```

#### 通过 cli 查询出块记录

Expand Down

0 comments on commit 2f507a1

Please sign in to comment.