blocktime

command
v2.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

Blocktime

blocktime is a simple tool to analyze block production rates of a chain. It scrapes the latest headers through the RPC endpoint of a provided node and calculates the average, min, max and standard deviation of the intervals between the last n blocks (default: 100).

To start a consensus node and expose the RPC endpoint, see the docs.

Usage

To compile the binary, run either go install or go build. The binary can then be used as follows:

./blocktime <node_rpc> [query_range]

As an example

$ ./blocktime http://localhost:26657 1000

Chain: mocha-3
Block Time (from 55775 to 56775):
	Average: 12.79s
	Min: 1.00s
	Max: 25.36s
	Standard Deviation: 6.279s

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL