Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Added block production time server flag #62

Merged
merged 2 commits into from
Jan 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/configuration/enable-metrics.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ The following metrics are available:
| consensus_validators | Gauge | Number of Validators |
| consensus_rounds | Gauge | Number of Rounds |
| consensus_num_txs | Gauge | Number of Transactions in the latest block |
| consensus_block_interval | Histogram | Time between this and last block in seconds |
| consensus_block_interval | Gauge | Time between this and last block in miliseconds |
| network_peers | Gauge | Number of Connected peers |
19 changes: 19 additions & 0 deletions docs/get-started/cli-commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,25 @@ Restore blocks from the specified archive file

---

<h4><i>block-time</i></h4>

<Tabs>
<TabItem value="syntax" label="Syntax" default>

server [--block-time BLOCK_TIME]

</TabItem>
<TabItem value="example" label="Example">

server --block-time 1000

</TabItem>
</Tabs>

Set block production time in miliseconds. Default: `2000`

---

### dev flags

<h4><i>log-level</i></h4>
Expand Down